home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
comm
/
fido
/
Reflex10.lha
/
Reflex
/
Reflex.ARexx.doc
< prev
next >
Wrap
Text File
|
1996-11-17
|
149KB
|
4,872 lines
TABLE OF CONTENTS
Reflex/--background--
Reflex/AddPart
Reflex/Attach
Reflex/ChangeEntryAddress
Reflex/ChangeEntryStatus
Reflex/CheckAddress
Reflex/ClipEntry
Reflex/ClipList
Reflex/CloseProgress
Reflex/CopyEntry
Reflex/CopyList
Reflex/DeleteEntry
Reflex/EditARexx
Reflex/EditAttaching
Reflex/EditDeletion
Reflex/EditFiles
Reflex/EditGeneral
Reflex/EditGUI
Reflex/EditMailer
Reflex/EditNodebook
Reflex/FindNextNode
Reflex/FindNode
Reflex/FirstEmpty
Reflex/FirstEntry
Reflex/FirstNode
Reflex/FirstOrphan
Reflex/FormatPollcommand
Reflex/Freq
Reflex/GetARexxDir
Reflex/GetAttachDir
Reflex/GetEntryAddress
Reflex/GetEntryDate
Reflex/GetEntryFilename
Reflex/GetEntryFlowfile
Reflex/GetEntryNum
Reflex/GetEntrySize
Reflex/GetEntryStatus
Reflex/GetEntrySystem
Reflex/GetEntryType
Reflex/GetFlowEntry
Reflex/GetLogfile
Reflex/GetNodelist
Reflex/GetNumEntries
Reflex/GetOutbound
Reflex/GetPollcommand
Reflex/GetPollpattern
Reflex/GetPort
Reflex/GetPubscreen
Reflex/GetReflexAuthor
Reflex/GetReflexDate
Reflex/GetReflexDesc
Reflex/GetReflexName
Reflex/GetReflexRelease
Reflex/GetReflexVersion
Reflex/HideGUI
Reflex/IsCfgChanged
Reflex/IsEmpty
Reflex/IsFlowFile
Reflex/IsFlowMail
Reflex/IsFlowPkt
Reflex/IsFreq
Reflex/IsGUI
Reflex/IsMissing
Reflex/IsNode
Reflex/IsOrphan
Reflex/IsPkt
Reflex/IsRegistered
Reflex/IsReq
Reflex/LastEntry
Reflex/LockARexx
Reflex/LockGUI
Reflex/Maintenance
Reflex/MatchAddress
Reflex/MatchPollpattern
Reflex/NB_GetNumNodes
Reflex/NB_IsNode
Reflex/NB_NodeReq
Reflex/NB_Options
Reflex/NB_Phone
Reflex/NB_Poll
Reflex/NB_Port
Reflex/NB_PreventCall
Reflex/NextEntry
Reflex/NextNode
Reflex/NextNodeEntry
Reflex/OpenProgress
Reflex/Poll
Reflex/PollEntry
Reflex/PrevEntry
Reflex/PrevNode
Reflex/PrevNodeEntry
Reflex/PrintList
Reflex/QueryOwnership
Reflex/Quit
Reflex/RequestAddress
Reflex/RequestAttach
Reflex/RequestFile
Reflex/RequestFreq
Reflex/RequestNode
Reflex/RequestNotify
Reflex/RequestPath
Reflex/RequestResponse
Reflex/RequestStatus
Reflex/Rescan
Reflex/SaveSettings
Reflex/SetEntryAddress
Reflex/SetEntryStatus
Reflex/ShowAbout
Reflex/ShowAcknowledgement
Reflex/ShowGUI
Reflex/ShowInfo
Reflex/SortOutboundList
Reflex/UnlockARexx
Reflex/UnlockGUI
Reflex/UpdateProgress
Reflex/WriteLog
Reflex/--background-- Reflex/--background--
COPYRIGHT
Reflex, Reflex.guide, Reflex.ARexx.doc and other accompanying
files are copyright Uffe Holst Christiansen unless otherwise
stated. Included runtime libraries are copyright their respective
authors.
Reflex is shareware. Please read Reflex.guide for more information
about registering.
Please send comments, bug reports, incorrect ARexx documentation,
suggestions, and registrations to:
Uffe Holst Christiansen
c/o Christiansen
Strandgaards Alle 11
DK 3600 Frederikssund
Denmark
PURPOSE
The purpose of the ARexx port is to make available a powerful
interface to the users. An interface to the features and
possibilities that Reflex offers.
With over 100 ARexx commands most needs should be fulfilled. Alas
so many ARexx commands requires a bit of documentation, and this
documentation is what you're reading right now.
Using the ARexx port gives you the possibility of tailoring Reflex
to your system and needs and performing the specific tasks you
like Reflex to perform unattended.
Reflex has got a very important feature and that is ARexx locking.
ARexx locking means you lock the ARexx port so only your script
can access the port. Two ARexx scripts being executed at the same
time could cause some nasty consequences - ARexx locking prevents
this. ARexx locking should be used by all scripts. Please read the
'OWNERSHIP' section below and the commands associated with ARexx
locking.
DISCLAIMER
My knowledge of ARexx programming is very little. Luckily it does
not prevent me form implementing an ARexx port in Reflex. Alas
I have to write documentation for the commands made available
through Reflex' ARexx port.
I haven't tested the ARexx port a lot, because ARexx programming
bores me. Luckily my betatesters have done a better job in this
area than I have.
I've never understood where to use single and where to use double
quotes in ARexx. I've also had a bit of trouble with EasyREXX and
strings containing spaces, but this might very well be because I
don't know enough about ARexx. If it is a problem with EasyREXX
then see the example under the autodoc entry for OpenProgress -
this works well.
Apropro example. Since ARexx programming bores me it is with
regret I have to tell that this ARexx documentation contains very
few examples.
I will not guarantee that the return codes actually are as stated
in the documentation, but I have made every possible attempt to
make them correct. Please report errors in the ARexx documentation
to the address above.
Use Reflex and its ARexx port at your own risk.
Thanks to my betatesters, Alex Holst, Anders Wegge Jakobsen and
Peter Kærsaa, for testing the ARexx port.
PORTNAME
Reflex' ARexx port is named 'REFLEX'. Please notice it is spelled
with uppercase letters as the Amiga User Interface Style Guide
prescribes.
AREXX SCRIPT SUFFIX
All ARexx scripts for Reflex ought to have the ending '#?.flex'.
OVERVIEW
The ARexx commands covers all aspects of Reflex and in the
documentation they are sorted alphabetically. This is both good
and bad. Good because you easily can find the documentation for a
certain ARexx command; and bad because similar commands are spread
across the documentation.
The ARexx commands are documented in a autodoc fashion. The
different sections in each autodoc entry is shortly described
below in the 'AUTODOC' section.
To enhance the overview of the ARexx commands, the commands are
sorted in different groups below in the 'COMMAND GROUPS' section.
Each group contains commands associated with a certain aspect of
Reflex or Reflex ARexx programming.
EASYREXX
Reflex uses the EasyREXX interface for its ARexx port. The
EasyREXX interface is a runtime shared library (easyrexx.library)
which you must have in you libs: directory.
The easyrexx.library is included in the Reflex distribution.
The easyrexx.library lets developers very easily add an ARexx port
to their program. Handling of ARexx is very easy using EasyREXX.
EasyREXX is highly recommendable for programmers.
EasyREXX is copyright Ketil Hunn. Thanks to Ketil for making the
EasyREXX interface.
AUTODOC
The documentation of the ARexx commands are done in an autodoc
fashion - just like functions in shared libraries are. Each ARexx
command has got an autodoc entry. The commands are sorted
alphabetically in the documentation.
Each autodoc entry contains several sections which are shortly
described here.
The 'NAME' section lists the name of the ARexx command and a
short description of the purpose of the command.
The 'SYNOPSIS' section lists the syntax of the command. This
is here you see which arguments the command takes. The arguments
are listed like command line options, i.e. the modifiers used by
the Reflex ARexx commands are:
/A - this is a required argument. This must be specified for
EasyREXX to pass the command on to Reflex.
/K - this is a keyword argument. The keyword have to be
specified in front of the option, i.e. "TITLE/K" means
you would have to write 'title "Window title"'.
/S - this a switch. This a boolean variable and will be set
if you specify it.
/N - this is a integer number.
Arguments with no socalled modifiers will be filled if there is
arguments left, when the processing is done. Please notice, that
multiple modifiers can be specified; i.e. /N/A means a integer
number is a required argument.
The 'FUNCTION' section is a long description of the purpose and
function of the ARexx command. Some commands are simple and do
only contain a brief description - other commands are more complex
or otherwise needs a more intensive description.
The 'INPUTS' section lists the arguments the ARexx commands takes
and describes what they mean in a more intensive way as the
'FUNCTION' section did.
The 'RETURN CODE' section lists what return codes the command
returns. The return code naturally depends upon what happened when
the command was received by Reflex. These return codes are
obtained in the ARexx RC variable.
The 'RESULT' section lists what information is returned in the
RESULT variable if such information is returned. Remember to turn
this feature on by using 'Options results'.
The 'BUGS' section describes bugs and misfeatures with the command
- luckily only a few commands have got anything listed here.
The 'NOTE' section only available for a few commands gives some
more information - normally of less importance.
The 'SEE ALSO' section tells you which other ARexx commands are
associated in function with the ARexx command.
COMMAND GROUPS
To enhance the overview of the ARexx commands they are divided
into groups below according to their function. Notice some
commands might be listed in more than one group if their function
falls into the sphere of the certain group.
'PROTECTION' commands
---------------------
These commands are used to protect the script from interference
from the user and other ARexx scripts. This is called GUI and
ARexx locking. Regarding ARexx locking please refer to the
'OWNERSHIP' section below for more information about ARexx
locking.
Commands used to handle GUI locking are:
LockGUI
UnlockGUI
and ARexx locking is handled by:
LockARexx
QueryOwnership
UnlockARexx
It is important to match both LockGUI and LockARexx with the
respecitive unlock command before the script ends.
'SEARCH and MOVE' commands
--------------------------
The outbound list contains all the entries listed in the main
window listview. The entry in the outbound list that the
outbound list pointer points to is called the 'current entry'.
The commands in this group are used to move the outbound list
pointer to another entry in the outbound list.
Commands used to search and move the outbound list pointer to
the first entry of a certain node:
FindNextNode
FindNode
Commands used to place the outbound list pointer at a position
respective to the current entry or the start or end of the
outbound list:
FirstEntry
LastEntry
NextEntry
PrevEntry
Commands used to move the outbound list pointer to a certain
type of file - for some of the commands respective to the
current entry:
FirstEmpty
FirstNode
FirstOrphan
NextNode
NextNodeEntry
PrevNode
PrevNodeEntry
If such a 'Search and move' command fails the outbound list
pointer will not have moved; i.e. it points to the same entry as
it did before the command was executed.
'OUTBOUND LIST' commands
------------------------
This group contains a variety of commands that obtain
information about the outbound list and especially about the
current entry in the outbound list. Other commands are used to
check if a certain kind of entry exists in the outbound list.
Yet other commands are used to perform actions with respect to
the current entry and other change the current entry.
Command used to obtain information about the outbound list:
GetNumEntries
Commands used to obtain information about the current entry:
GetEntryAddress
GetEntryDate
GetEntryFilename
GetEntryFlowfile
GetEntryNum
GetEntrySize
GetEntryStatus
GetEntrySystem
GetEntryType
GetFlowEntry
The following commands are used to check if entries of a certain
kind exist in the outbound list:
IsEmpty
IsFlowFile
IsFlowMail
IsFlowPkt
IsFreq
IsMissing
IsNode
IsOrphan
IsPkt
IsReq
Commands that work on the current entry:
ClipEntry
CopyEntry
PollEntry
ShowInfo
And commands that change aspects of the current entry or even
remove the current entry from the outbound directory:
ChangeEntryAddress
ChangeEntryStatus
DeleteEntry
SetEntryAddress
SetEntryStatus
Lastly commands that work on the full outbound list:
ClipList
CopyList
PrintList
SortOutboundList
'FIDO' commands
---------------
This group of commands handles what I call Fido related aspects,
i.e. file requesting and attaching and handling of Fido
addresses:
Attach
CheckAddress
Freq
MatchAddress
'CONFIGURATION' commands
------------------------
These commands concern different aspects of the configuration
of Reflex. Of most importance is the commands to obtain
configuration information:
GetARexxDir
GetAttachDir
GetLogfile
GetNodelist
GetOutbound
GetPollcommand
GetPollpattern
GetPort
These commands are used to invoke the configuration windows.
Personally I can't see that these can be of much use, but some
might find them usefull. Spot has got such commands too, so
why sholdn't I:
EditARexx
EditAttaching
EditDeletion
EditFiles
EditGeneral
EditGUI
EditMailer
EditNodebook
Other configuration commands:
IsCfgChanged
SaveSettings
'MAILER' commands
-----------------
The commands in this group concerns the interaction between
Reflex and you mailer. Most important is the two last commands
which executes the poll command:
EditMailer
FormatPollcommand
GetPollcommand
GetPollpattern
GetPort
MatchPollpattern
Poll
PollEntry
'GUI' commands
--------------
The commands of this group are used to control the graphic user
interface. Of most importance is the commands to open and close
the GUI:
EditGUI
HideGUI
IsGUI
ShowGUI
GetPubscreen
'NODEBOOK' commands
-------------------
The Nodebook is the telephone book of Reflex. The commands of
this groups concerns the Nodebook:
EditNodebook
NB_GetNumNodes
NB_IsNode
NB_NodeReq
NB_Options
NB_Phone
NB_Poll
NB_Port
NB_PreventCall
'REQUESTER' commands
--------------------
Reflex gives you certain commands for opening different
requesters. These are the commands you use to handle progress
requesters:
CloseProgress
OpenProgress
UpdateProgress
File and path requesters, and requesters to notify the user or
give the user a choice:
RequestFile
RequestNotify
RequestPath
RequestResponse
Requesters to query a Fido address, a Fido address chosen from
a group of nodes, or to query a status:
RequestAddress
RequestNode
RequestStatus
Commands to open the Attach or Freq requester:
RequestAttach
RequestFreq
'MISCELLANEOUS' commands:
-------------------------
This group consist of commands that doesn't fit into any of the
other groups very well. The first commands are used to perform
rescan or maintenances of the outbound directory:
Maintenance
Rescan
To write to the log file:
WriteLog
Other commands:
AddPart
IsRegistered
Quit
ShowAbout
ShowAcknowledgement
'USELESS' commands
------------------
This group consist of useless commands:
GetReflexAuthor
GetReflexDate
GetReflexDesc
GetReflexName
GetReflexRelease
GetReflexVersion
OWNERSHIP
When you start an ARexx script you surely want everything to work
alright. The purpose of a script could be quite vital and it is
therefore of importance that nothing disturbs the script.
One problem is that nothing prevents stupid users from interfering
by clicking the weirdest places in the GUI. This can be prevented
with the GUI locking feature of Reflex. The command LockGUI will
prevent the user from interfering while the script is running. A
LockGUI command must be matched with an UnlockGUI command before
the script ends.
Another problem is other ARexx scripts. Absolutely nothing
prevents two ARexx scripts from addressing the ARexx port of an
application at the same time. This can naturally have quite fatal
consequences; just imagine one script places the outbound list
pointer on a certain entry with the purpose of deleting the entry.
In the meantime another scripts moves the outbound list pointer
to another entry with the result that this entry is deleted
instead of the entry destined for deletion.
One ARexx script's interference with another ARexx script can in
Reflex be prevented with the ARexx locking feature of Reflex. When
Reflex is ARexx locked Reflex will only accept messages from the
script that locked the ARexx port; i.e. you have got the exclusive
usage of Reflex' ARexx port. All other messages are returned with
a return code of 20 (RC_FATAL).
When the ARexx port is ARexx locked all commands sent to
the ARexx port are returned with an return code of 20
(RC_FATAL) unless the commands come from the script that
currently owns the ARexx port.
It is vital that the LockARexx command is matched with an
UnlockARexx command before the script ends. Only the locking
script can unlock the ARexx port. If your script for some reason
ends before you unlocked the ARexx port it is impossible to unlock
it again and a reboot is necessary.
All scripts for Reflex ought to use both GUI and ARexx locking.
Generally you will ARexx lock it before GUI locking it and GUI
unlock it before ARexx unlocking it. If you do not use ARexx
locking you might experience that another ARexx script steals
the ARexx port right from under you feet by using ARexx locking
which result in all commands in you script returning 20
(RC_FATAL).
Actually the command LockARexx is superfluous and QueryOwnership
should be used instead. QueryOwnership will report whether or not
the ARexx port is locked. When QueryOwnership reports that the
ARexx port is locked you should do one of two:
1. Exit your script.
2. You would have put QueryOwnership in a loop and when it is
reported that the ARexx port is locked you wait a few seconds
and again query whether or not the port still is locked. It
will be up to you how many times you will continue to query
until you exit the script.
If QueryOwnership reports that the ARexx port is free there is no
guarantee that the ARexx port still is free when you immediately
afterwards send the port a LockARexx command. Another script could
have locked the ARexx port in between.
Therefore you will not use LockARexx to lock the ARexx port when
it is free. The QueryOwnership command has got a LOCK switch which
when stated automatically will lock the ARexx port if it was free.
You will now own the ARexx port and must remember to match the
QueryOwnership LOCK command with a UnlockARexx command.
Use of ARexx 'onerror' is highly recommended. When Reflex is ARexx
locked nobody but the locking script will be able to unlock the
ARexx port. Therefore it is of vital importance that you correctly
handles errors and make sure to unlock the ARexx port before the
script ends.
The following example shows how you should implement ARexx and GUI
locking in your own ARexx scripts for Reflex. The example is
available in the rexx directory as 'Skeleton.flex'.
/* Skeleton.flex
* $VER: Skeleton.flex 1.2 (2.6.96)
*
* This script shows how to use ARexx and GUI locking in your
* own scripts. You ought to use Skeleton.flex or similar code
* when writing your own scripts
*/
SIGNAL ON FAILURE
OPTIONS FAILAT 20
/* Initialization goes here
* Retries - how many retries
* WaitDelay - how many ticks to wait between each retry
* 50 ticks = 1 second
*/
Retries = 25
WaitDelay = 50
ADDRESS 'REFLEX'
OPTIONS RESULTS
OwnerShip = 0
/*
* rexxsupport.library needed for delay
*/
IF (~SHOW('L',"rexxsupport.library")) THEN DO
IF (~ADDLIB("rexxsupport.library",0,-30,0)) THEN DO
SAY '* Terminating; need rexxsupport.library'
EXIT 10
END
END
/*
* Attempt to lock the Arexx interface
* 'Retries' attempts are made; waiting 'WaitDelay'
* ticks between each attempt
*/
DO WHILE ((OwnerShip ~= 1) & (Retries > 0))
QUERYOWNERSHIP LOCK
Res = RC
IF (Res == 0) THEN
OwnerShip = 1
ELSE
CALL DELAY(WaitDelay)
Retries = Retries - 1
END
IF (OwnerShip == 1) THEN DO
LOCKGUI
/* This is where you put your own
* possibly critical code - the ARexx
* port is for your use only
*/
UNLOCKGUI
UNLOCKAREXX
END
EXIT
/*
* Handle errors
*/
Failure:
IF (OwnerShip == 1) THEN DO
UNLOCKGUI
UNLOCKAREXX
END
EXIT 10
Well, 'Skeleton.flex' is courtesy of Anders Wegge Jakobsen.
'Skeleton.flex' opens 'rexxsupport.library' to be able to use the
DELAY function.
ERROR REQUESTERS
Reflex normally prompts you with error requesters if something
went wrong. Naturally error requesters will be very annoying when
an ARexx script is executed since Reflex will hang until you
come by and click 'Ok'.
Therefore error requesters are suppressed when ARexx commands
are executed.
Reflex/AddPart Reflex/AddPart
NAME
AddPart -- appends a file/dir to the end of a path
SYNOPSIS
AddPart DIR/A,FILE/A
FUNCTION
This is to ease some of the problems you might meet when using
other Reflex commands. This is the Reflex ARexx interface to the
dos.library function AddPart().
This command adds a file, directory, or subpath name to a
directory path name taking into account any required separator
characters. If filename is a fully-qualified path it will totally
replace the current value of dirname.
The full filename incl. path is returned in RESULT.
INPUTS
DIR/A - the path to add a file/directory name to.
FILE/A - the filename or directory name to add. May be a relative
pathname from the current directory (example: foo/bar).
Can deal with leading '/'(s), indicating one directory up
per '/', or with a ':', indicating it's relative to the
root of the appropriate volume.
RETURN CODE
0 (RC_OK) - a filename incl. full path is returned in RESULT.
5 (RC_WARN) - something went wrong.
RESULT
Full filename incl. path.
BUGS
None known.
NOTE
This autodoc entry for the ARexx command AddPart is to a great
extent a transcript from the dos.library autodoc's part about the
AddPart() function.
This command is implemented because the paths specified in the
Files configuration might or might not have a '/' in the end.
Using the AddPart command means that you as a programmer do not
have to check for a '/' before adding a filename to a pathname.
SEE ALSO
GetARexxDir, GetAttachDir, GetEntryFilename, GetLogFile,
GetNodelist, GetOutbound
Reflex/Attach Reflex/Attach
NAME
Attach -- attach a file
SYNOPSIS
Attach FILE/A,TO/K/A,STATUS/K,ACTION/K,COPY/S,ATTACHDESC/S
FUNCTION
This command attaches a file to another system. I did for example
use
ATTACH 'MAIL:Files/Reflex.0.88.lha' TO '2:238/127'
STATUS crash ACTION '^'
when I back in version 0.88 tested the new Attach command by
attaching Reflex to my betatester.
When you use the Attach command you should notice two things:
- after this command has succeeded the outbound list will contain
one entry more than it did before. I.e. GetNumEntries will
return a number one larger.
- the new entry (i.e. the new attached file) will be located at
the end of the list; i.e. it will be the last entry in the
outbound list. You can use SortOutboundList to sort the list and
thereby move the new entry to its correct position in the
outbound list if needed.
Using the STATUS keyword you can specify the flavour the attach
should have. With the ACTION keyword you can specify the mailer
action.
The COPY switch will instruct Reflex to copy the file to the
outbound directory before attaching the file. If Reflex for some
reason can't copy the file to the outbound directory it will be
attached from its home directory.
The ATTACHDESC switch instructs Reflex to search for a description
file to attach along with the file itself. The description file is
found according to the settings in the Attaching requester.
INPUTS
FILE/A - filename incl. path of file to attach. The file
does not have to exist. If it doesn't exist it will
be marked as missing.
TO/K/A - the Fido address of the system to receive the file.
STATUS/K - flavour of file to attach; 'Normal', 'Crash',
'Hold' or 'Direct'. Default to 'Normal' if not
specified.
ACTION/K - the mailer action, i.e. what should your mailer do
with the file after it has been sent. Reflex
doesn't check if the action you specify is known,
but the mailer actions known by Reflex, TrapDoor
etc. is:
# ... Truncate this file to zero length
^ ... Delete this file (with logging)
- ... Delete this file (without logging)
@ ... No special processing after sending (but
allow filenote tagging -- see below)
~ ... Don't send this file (has been sent
previously)
the only mailer "action' not mentioned above is 'No
special processing' which occur when no character
is put in front of the filename in the flow file.
You can specify this action using a space (' ') -
this is the default action if no action is
specified.
COPY/S - instruct Reflex to copy the file to the outbound
directory before attaching.
ATTACHDESC/S - instruct Reflex to look for a description file to
attach along with the file itself.
RETURN CODE
0 (RC_OK) - if the command succeeded fully and the file attach
was made.
5 (RC_WARN) - if an error occured while attaching the file.
10 (RC_ERROR) - if specified Fido address is invalid.
10 (RC_ERROR) - if specified status (flavour) is invalid.
RESULT
None.
BUGS
None known.
NOTE
The mailer actions listed is a transcript from the documentation
for TrapDoor by Maximilian Hantsch and Martin Laubach.
SEE ALSO
RequestAttach, SortOutboundList
Reflex/ChangeEntryAddress Reflex/ChangeEntryAddress
NAME
ChangeEntryAddress -- request user for new address of current
entry
SYNOPSIS
RESULT = ChangeEntryAddress
FUNCTION
This command opens the Address requester to prompt the user for a
new Fido address for the current entry. The destination address of
the current entry will be changed. Naturally you can only change
address for an entry that already has an address.
The Address requester will open with the address of the current
entry.
The new Fido address for the current entry will be returned in
RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - address was indeed changed. New address is
available in RESULT.
5 (RC_WARN) - for some reason Reflex didn't succeed in changing
the address.
5 (RC_WARN) - user cancelled Address requester.
10 (RC_ERROR) - current entry not of the right type, i.e. current
entry is either an orphan or empty file.
RESULT
The user selected new Fido address for the current entry.
BUGS
None known.
SEE ALSO
GetEntryAddress, RequestAddress, SetEntryAddress
Reflex/ChangeEntryStatus Reflex/ChangeEntryStatus
NAME
ChangeEntryStatus -- request user for new status of current entry
SYNOPSIS
RESULT = ChangeEntryStatus
FUNCTION
This command opens the Status requester to prompt the user for a
new status (flavour) for the current entry. Naturally you can only
change status for entries with a Normal, Crash, Hold or Direct
flavour.
The Status requester will open with the current flavour of the
current entry.
You can also change status of requests at you system to normal
flow file entries using this command.
The new status (flavour) for the current entry will be returned
in RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - status was indeed changed. New status is available
in RESULT.
5 (RC_WARN) - for some reason Reflex didn't succeed in changing
the status.
5 (RC_WARN) - user cancelled Status requester.
10 (RC_ERROR) - current entry not of the right type, i.e. current
entry is either a file request, orphan or empty
file.
RESULT
The user selected new status (flavour) for the current entry:
"1" - Normal (flavour is normal)
"2" - Crash (flavour is crash)
"3" - Hold (flavour is hold)
"4" - Direct (flavour is direct)
BUGS
None known.
SEE ALSO
GetEntryStatus, RequestStatus, SetEntryStatus
Reflex/CheckAddress Reflex/CheckAddress
NAME
CheckAddress -- check if Fido address is valid.
SYNOPSIS
CheckAddress ADDRESS/A
FUNCTION
This command checks if a specified Fido address is valid.
Valid Fido addresses are either 3D addresses (zone:net/node) or
4D addresses (zone:net/node.point), where zone, net, node and
point all are integers in the range 0 to 65535.
INPUTS
ADDRESS/A - Fido address to check.
RETURN CODE
0 (RC_OK) - specified Fido address is valid.
5 (RC_WARN) - specified Fido address isn't valid.
RESULT
None.
BUGS
None known.
SEE ALSO
Reflex/ClipEntry Reflex/ClipEntry
NAME
ClipEntry -- copy current entry to clipboard
SYNOPSIS
ClipEntry
FUNCTION
This command copies the current entry to the clipboard. The
copied entry is a line like the one displayed in the listview.
INPUTS
None.
RETURN CODE
0 (RC_OK) - is always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
ClipList, CopyEntry, CopyList
Reflex/ClipList Reflex/ClipList
NAME
ClipList -- copy outbound list to clipboard
SYNOPSIS
ClipList
FUNCTION
This command copies the outbound list to the clipboard. The copied
list is a serie of lines like the ones displayed in the listview.
INPUTS
None.
RETURN CODE
0 (RC_OK) - is always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
ClipEntry, CopyEntry, CopyList
Reflex/CloseProgress Reflex/CloseProgress
NAME
CloseProgress -- close progress requester
SYNOPSIS
CloseProgress PROGRESS/N/A
FUNCTION
This function closes an opened progress requester.
You will need a progress requester identifier key when you address
the progress requester. You will have obtained this key when you
opened the progress requester using the OpenProgress command.
INPUTS
PROGRESS/N/A - progress requester identifier key obtained from
OpenProgress. Specifying a zero key obtained from
OpenProgress when Reflex failed opening a progress
requester is allowed.
RETURN CODE
0 (RC_OK) - if progress requester was closed.
5 (RC_WARN) - progress requester identifier key was invalid (or
zero).
RESULT
None.
BUGS
None known.
SEE ALSO
OpenProgress, UpdateProgress
Reflex/CopyEntry Reflex/CopyEntry
NAME
CopyEntry -- copy current entry to clipboard
SYNOPSIS
CopyEntry
FUNCTION
This command copies the current entry to the clipboard. The
copied entry is a line like the one displayed in the listview.
INPUTS
None.
RETURN CODE
0 (RC_OK) - is always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
ClipEntry, ClipList, CopyList
Reflex/CopyList Reflex/CopyList
NAME
CopyList -- copy outbound list to clipboard
SYNOPSIS
CopyList
FUNCTION
This command copies the outbound list to the clipboard. The copied
list is a serie of lines like the ones displayed in the listview.
INPUTS
None.
RETURN CODE
0 (RC_OK) - is always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
ClipEntry, ClipList, CopyEntry
Reflex/DeleteEntry Reflex/DeleteEntry
NAME
DeleteEntry -- delete current entry
SYNOPSIS
DeleteEntry NOREQ/S
FUNCTION
This command deletes the current entry in the outbound list. In
most cases Reflex will prompt you with a requester to confirm the
deletion.
If the current entry is an orphan or empty file, or if the current
entry is a flow file entry of a missing file, Reflex will NOT
prompt you with a requester before deleting the entry.
Please notice, that the entry still exists in the outbound list
after the deletion even though it actually was deleted. After the
deletion the current entry will still be the same, i.e. the
current entry is the deleted entry.
Specifying the NOREQ switch will suppress the default confirmation
requester and immediately delete the entry.
The table below shows how Reflex handles the deletion with or
without the NOREQ switch. [] means safety requesters; 'bundle',
'mail' and 'file' are the actual files that are deleted; 'entry'
is the flow file entry being removed (the file will not be
deleted).
Entry type DeleteEntry DeleteEntry NOREQ
-------------------------------------------------------------------
Compr. mail bundles [Delete y/n?] Bundle deleted
Uncompr. mail in flow files [Delete y/n?] Mail deleted
File attaches [Remove/delete/no?] Entry removed
Entries of missing files Entry removed Entry removed
4D uncompr. mail packets [Delete y/n?] Mail deleted
File requests [Delete y/n?] Freq deleted
Orphan files File deleted File deleted
Empty files File deleted File deleted
Requests at your system [Delete y/n?] Entry removed
-------------------------------------------------------------------
The outbound list will not be updated before you perform a rescan
of the outbound directory. Until then you might come across the
deleted entry when you browse the outbound list.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the entry was indeed deleted.
5 (RC_WARN) - if the entry for some reason wasn't deleted.
RESULT
None.
BUGS
None known.
SEE ALSO
Rescan
Reflex/EditARexx Reflex/EditARexx
NAME
EditARexx -- open ARexx configuration
SYNOPSIS
EditARexx
FUNCTION
Opens the ARexx configuration window for the user to make changes
in the configuration.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if no changes were made.
5 (RC_WARN) - if changes were made.
RESULT
None.
BUGS
None known.
SEE ALSO
EditAttaching, EditDeletion, EditFiles, EditGeneral, EditGUI,
EditMailer, EditNodebook, IsCfgChanged, SaveSettings
Reflex/EditAttaching Reflex/EditAttaching
NAME
EditAttaching -- open Attaching configuration
SYNOPSIS
EditAttaching
FUNCTION
Opens the Attaching configuration window for the user to make
changes in the configuration.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if no changes were made.
5 (RC_WARN) - if changes were made.
RESULT
None.
BUGS
None known.
SEE ALSO
EditARexx, EditDeletion, EditFiles, EditGeneral, EditGUI,
EditMailer, EditNodebook, IsCfgChanged, SaveSettings
Reflex/EditDeletion Reflex/EditDeletion
NAME
EditDeletion -- open Deletion configuration
SYNOPSIS
EditDeletion
FUNCTION
Opens the Deletion configuration window for the user to make
changes in the configuration.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if no changes were made.
5 (RC_WARN) - if changes were made.
RESULT
None.
BUGS
None known.
SEE ALSO
EditARexx, EditAttaching, EditFiles, EditGeneral, EditGUI,
EditMailer, EditNodebook, IsCfgChanged, SaveSettings
Reflex/EditFiles Reflex/EditFiles
NAME
EditFiles -- open Files configuration
SYNOPSIS
EditFiles
FUNCTION
Opens the Files configuration window for the user to make changes
in the configuration.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if no changes were made.
5 (RC_WARN) - if changes were made.
RESULT
None.
BUGS
None known.
SEE ALSO
EditARexx, EditAttaching, EditDeletion, EditGeneral, EditGUI,
EditMailer, EditNodebook, IsCfgChanged, SaveSettings
Reflex/EditGeneral Reflex/EditGeneral
NAME
EditGeneral -- open General configuration
SYNOPSIS
EditGeneral
FUNCTION
Opens the General configuration window for the user to make
changes in the configuration.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if no changes were made.
5 (RC_WARN) - if changes were made.
RESULT
None.
BUGS
None known.
SEE ALSO
EditARexx, EditAttaching, EditDeletion, EditFiles, EditGUI,
EditMailer, EditNodebook, IsCfgChanged, SaveSettings
Reflex/EditGUI Reflex/EditGUI
NAME
EditGUI -- open GUI configuration
SYNOPSIS
EditGUI
FUNCTION
Opens the GUI configuration window for the user to make
changes in the configuration.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if no changes were made.
5 (RC_WARN) - if changes were made.
RESULT
None.
BUGS
None known.
SEE ALSO
EditARexx, EditAttaching, EditDeletion, EditFiles, EditGeneral,
EditMailer, EditNodebook, IsCfgChanged, SaveSettings
Reflex/EditMailer Reflex/EditMailer
NAME
EditMailer -- open Mailer configuration
SYNOPSIS
EditMailer
FUNCTION
Opens the Mailer configuration window for the user to make
changes in the configuration.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if no changes were made.
5 (RC_WARN) - if changes were made.
RESULT
None.
BUGS
None known.
SEE ALSO
EditARexx, EditAttaching, EditDeletion, EditFiles, EditGeneral,
EditGUI, EditNodebook, IsCfgChanged, SaveSettings
Reflex/EditNodebook Reflex/EditNodebook
NAME
EditNodebook -- open Nodebook configuration
SYNOPSIS
EditNodebook
FUNCTION
Opens the Nodebook configuration window for the user to make
changes in the configuration.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if no changes were made.
5 (RC_WARN) - if changes were made.
RESULT
None.
BUGS
None known.
SEE ALSO
EditARexx, EditAttaching, EditDeletion, EditFiles, EditGeneral,
EditGUI, EditMailer, IsCfgChanged, NB_GetNumNodes, NB_IsNode,
NB_NodeReq, NB_Options, NB_Phone, NB_Poll, NB_Port,
NB_PreventCall, SaveSettings
Reflex/FindNextNode Reflex/FindNextNode
NAME
FindNextNode -- find node from current entry and move outbound
list pointer
SYNOPSIS
FindNextNode NODE/A
FUNCTION
This command will attempt to locate a certain node in the outbound
list. If the node is found the outbound list pointer will be moved
to the first entry with the node.
The search is conducted from current entry in the outbound list.
This command currently requires traplist.library.
INPUTS
NODE/A - Fido address of node to look for in outbound list.
RETURN CODE
0 (RC_OK) - if the node was located in the outbound list. The
outbound list pointer is moved to the first entry
with the node.
5 (RC_WARN) - if no entry in the outbound list matched the
specified node.
10 (RC_ERROR) - traplist.library not available.
10 (RC_ERROR) - specified Fido address invalid.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNode, FirstEmpty, FirstEntry, FirstNode, FirstOrphan,
LastEntry, NextEntry, NextNode, NextNodeEntry, PrevEntry,
PrevNode, PrevNodeEntry
Reflex/FindNode Reflex/FindNode
NAME
FindNode -- find node and move outbound list pointer
SYNOPSIS
FindNode NODE/A
FUNCTION
This command will attempt to locate a certain node in the outbound
list. If the node is found the outbound list pointer will be moved
to the first entry with the node.
The search is conducted from the beginning of the outbound list.
This command currently requires traplist.library.
INPUTS
NODE/A - Fido address of node to look for in outbound list.
RETURN CODE
0 (RC_OK) - if the node was located in the outbound list. The
outbound list pointer is moved to the first entry
with the node.
5 (RC_WARN) - if no entry in the outbound list matched the
specified node.
10 (RC_ERROR) - traplist.library not available.
10 (RC_ERROR) - specified Fido address invalid.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNextNode, FirstEmpty, FirstEntry, FirstNode, FirstOrphan,
IsNode, LastEntry, NextEntry, NextNode, NextNodeEntry, PrevEntry,
PrevNode, PrevNodeEntry
Reflex/FirstEmpty Reflex/FirstEmpty
NAME
FirstEmpty -- move outbound list pointer to first empty file
SYNOPSIS
FirstEmpty
FUNCTION
This command will move the outbound list pointer to the first
empty file in the outbound list.
The commands NextNodeEntry and PrevNodeEntry can be used to move
the outbound list pointer from one empty file to the next or
previous empty file, respectively.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the outbound list pointer was moved to the
first empty file.
5 (RC_WARN) - if the outbound list doesn't contain any empty
files.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNextNode, FindNode, FirstEntry, FirstNode, FirstOrphan,
LastEntry, NextEntry, NextNode, NextNodeEntry, PrevEntry,
PrevNode, PrevNodeEntry
Reflex/FirstEntry Reflex/FirstEntry
NAME
FirstEntry -- move outbound list pointer to first entry
SYNOPSIS
FirstEntry
FUNCTION
This command moves the outbound list pointer to the first entry
in the outbound list.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the outbound list pointer was moved to the
first entry.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNextNode, FindNode, FirstEmpty, FirstNode, FirstOrphan,
LastEntry, NextEntry, NextNode, NextNodeEntry, PrevEntry,
PrevNode, PrevNodeEntry
Reflex/FirstNode Reflex/FirstNode
NAME
FirstNode -- move outbound list pointer to first node entry
SYNOPSIS
FirstNode
FUNCTION
This command will move the outbound list pointer to the first
entry in the outbound list with a Fido address. In practice this
will move the outbound list pointer to the first entry - unless
the first entry is an orphan or empty file.
INPUTS
None.
RETURN CODE
0 (RC_OK) - is returned if the outbound list pointer was moved
to the first entry with a Fido address.
5 (RC_WARN) - if there isn't an entry in the outbound list with
a Fido address. The outbound list pointer will not
have moved.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNextNode, FindNode, FirstEmpty, FirstEntry, FirstOrphan,
LastEntry, NextEntry, NextNode, NextNodeEntry, PrevEntry,
PrevNode, PrevNodeEntry
Reflex/FirstOrphan Reflex/FirstOrphan
NAME
FirstOrphan -- move outbound list pointer to first orphan file
SYNOPSIS
FirstOrphan
FUNCTION
This command will move the outbound list pointer to the first
orphan file in the outbound list.
The commands NextNodeEntry and PrevNodeEntry can be used to move
the outbound list pointer from one orphan file to the next or
previous orphan file, respectively.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the outbound list pointer was moved to the
first orphan file.
5 (RC_WARN) - if the outbound list doesn't contain any orphan
files.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNextNode, FindNode, FirstEmpty, FirstEntry, FirstNode,
LastEntry, NextEntry, NextNode, NextNodeEntry, PrevEntry,
PrevNode, PrevNodeEntry
Reflex/FormatPollcommand Reflex/FormatPollcommand
NAME
FormatPollcommmand -- format poll command for a node
SYNOPSIS
RESULT = FormatPollcommand NODE/A,POLLCOMMAND/K
FUNCTION
This function returns a formatted poll command for a specified
node. The poll command as specified in the Mailer configuration
is formatted for the specified node according to the settings
specified for the node in the Nodebook.
Another poll command can be specified to be used instead of the
one specified in the Mailer configuration for the formatting.
The formatted poll command is returned in RESULT.
INPUTS
NODE/A - Fido address of the node for whom to format the
poll command.
POLLCOMMAND/K - another poll command to use instead of the one
specified in the Mailer configuration.
RETURN CODE
0 (RC_OK) - if a formatted poll command is returned in RESULT.
5 (RC_WARN) - if Reflex for some reason didn't succeed in
formatting the poll command.
10 (RC_ERROR) - if the specified Fido address is invalid.
RESULT
A formatted poll command for the specified node. For example if
the poll command specified in the Mailer configuration is
"TrapDoor CALL %n" and the node specified in the FormatPollcommand
call is 2:238/127 Reflex will return "TrapDoor CALL 2:238/127".
Please notice, that according to the settings in the Nodebook the
node number might be substituted with another node number or a
phone number.
BUGS
None known.
SEE ALSO
GetPollcommand, Poll, PollEntry
Reflex/Freq Reflex/Freq
NAME
Freq -- file request a file
SYNOPSIS
Freq FILE/A,AT/K/A
FUNCTION
This command will request a file at another system. For example
will
FREQ REFLEX AT "2:238/127"
make a file request for 'REFLEX' at 2:238/127. When you use the
Freq command there is a couple of things to notice:
- after this command has succeeded the outbound list will contain
one entry more than it did before. I.e. GetNumEntries will
return a number one larger.
- the new entry (i.e. the new file request) will be located at the
end of the list; i.e. it will be the last entry in the outbound
list. You can use SortOutboundList to sort the list and thereby
move the new entry to its correct position in the outbound list
if needed.
INPUTS
FILE/A - name of file to request.
AT/K - system at which the request shall take place. This is a
Fido address.
RETURN CODE
0 (RC_OK) - if the command succeeded fully and the file
request was made.
5 (RC_WARN) - if an error occured.
10 (RC_ERROR) - if the specified Fido address is invalid.
RESULT
None.
BUGS
None known.
SEE ALSO
RequestAttach, SortOutboundList
Reflex/GetARexxDir Reflex/GetARexxDir
NAME
GetARexxDir -- obtain path to ARexx directory
SYNOPSIS
RESULT = GetARexxDir
FUNCTION
This command returns the path to the ARexx directory as specified
in the Files configuration. The path is returned in RESULT. ARexx
scripts are located in the ARexx directory.
INPUTS
None.
RETURN CODE
0 (RC_OK) - when the path to the ARexx directory is returned
in RESULT.
10 (RC_ERROR) - if no ARexx directory was specified.
RESULT
The ARexx directory, e.g. "REXX:Reflex"
BUGS
None known.
SEE ALSO
AddPart, GetAttachDir, GetEntryFilename, GetLogfile, GetNodelist,
GetOutbound
Reflex/GetAttachDir Reflex/GetAttachDir
NAME
GetAttachDir -- obtain path to attach directory
SYNOPSIS
RESULT = GetAttachDir
FUNCTION
This command returns the path to the attach directory as specified
in the Files configuration. The path is returned in RESULT. The
attach directory is the directory the Attach requester will open
its file requester in.
INPUTS
None.
RETURN CODE
0 (RC_OK) - when the path to the attach directory is returned
in RESULT.
10 (RC_ERROR) - if no attach directory was specified.
RESULT
The attach directory, e.g. "BBS:Files"
BUGS
None known.
SEE ALSO
AddPart, GetARexxDir, GetEntryFilename, GetLogfile, GetNodelist,
GetOutbound
Reflex/GetEntryAddress Reflex/GetEntryAddress
NAME
GetEntryAddress -- obtain Fido address of current entry
SYNOPSIS
RESULT = GetEntryAddress
FUNCTION
This command will return the Fido address of the current entry in
the outbound list. The Fido address is returned in RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if a Fido address was returned in RESULT.
5 (RC_WARN) - if the entry didn't have a Fido address (i.e it is
either an orphan or an empty file).
10 (RC_ERROR) - if the outbound list is empty.
RESULT
The Fido address of the current entry in the outbound list. In
other words a string like "2:238/127.0" is returned.
BUGS
None known.
SEE ALSO
ChangeEntryAddress, GetEntryDate, GetEntryFilename,
GetEntryFlowfile, GetEntryNum, GetEntrySize, GetEntryStatus,
GetEntrySystem, GetEntryType, GetFlowEntry, SetEntryAddress
Reflex/GetEntryDate Reflex/GetEntryDate
NAME
GetEntryDate -- obtain date of current entry
SYNOPSIS
RESULT = GetEntryDate
FUNCTION
This command returns the date of the current entry in the outbound
list. The date is returned in RESULT.
All entries except file requests have en date.
The returned format is:
dd-mmm-yy hh:mm:ss
where 'dd' is day, 'mmm' is month in letter, 'yy' is year, 'hh' is
hours, 'mm' is minutes, and 'ss' is seconds.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the date is returned in RESULT.
5 (RC_WARN) - if the current entry is a file request
10 (RC_ERROR) - if the outbound list is empty.
RESULT
The date of the current entry in the outbound list.
BUGS
None known.
SEE ALSO
GetEntryAddress, GetEntryDate, GetEntryFilename, GetEntryFlowfile,
GetEntryNum, GetEntryStatus, GetEntrySystem, GetEntryType,
GetFlowEntry
Reflex/GetEntryFilename Reflex/GetEntryFilename
NAME
GetEntryFilename -- obtain filename of current entry
SYNOPSIS
RESULT = GetEntryFilename
FUNCTION
This command return the filename of the current entry in the
outbound list. This is only the filename, i.e. exclusive the
path. The filename is returned in RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - when a filename is returned in RESULT.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
The filename of the current entry in the outbound list. I.e. a
string like "2.238.127.0.CUT" or "Reflex.lha" is returned.
BUGS
None known.
SEE ALSO
AddPart, GetEntryAddress, GetEntryDate, GetEntryFlowfile,
GetEntryNum, GetEntrySize, GetEntryStatus, GetEntrySystem,
GetEntryType, GetFlowEntry
Reflex/GetEntryFlowfile Reflex/GetEntryFlowfile
NAME
GetEntryFlowfile -- obtain the name of the flow file
SYNOPSIS
RESULT = GetEntryFlowfile
FUNCTION
This command will return the name of the flow file that the
current entry is listed in. This is the normal flow files with
suffixes .FLO, .CLO, .HLO or .DLO. The command will also return
the name of the file request files .REQ and request files .RLO.
In all cases the filename inclusive full path is returned. The
filename of the flow file is returned in RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - when a filename of a flow file is returned in
RESULT.
5 (RC_WARN) - if the current entry isn't listed en a flow file
kind of type file. I.e. the current entry is
either an orphan or empty file or 4D uncompressed
mail.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
The filename of the flow file. In all cases the full filename
inclusive path is returned, i.e. a string like
"MAIL:Outbound/2.238.127.0.FLO" or "MAIL:Outbound/2.238.127.0.REQ"
is returned.
BUGS
None known.
SEE ALSO
GetEntryAddress, GetEntryDate, GetEntryFilename, GetEntryNum,
GetEntrySize, GetEntryStatus, GetEntrySystem, GetEntryType,
GetFlowEntry
Reflex/GetEntryNum Reflex/GetEntryNum
NAME
GetEntryNum -- obtain entry number
SYNOPSIS
RESULT = GetEntryNum
FUNCTION
This command will return the number of the current entry in the
outbound list. If the outbound list is empty zero is returned. The
number is returned in result.
For example this could be used to update a progress requester
every time you have processed a node.
INPUTS
None.
RETURN CODE
0 (RC_OK) - always returned.
RESULT
The number of the entry in the outbound list. Zero is returned if
the outbound list is empty.
BUGS
None known.
SEE ALSO
GetNumEntries
Reflex/GetEntrySize Reflex/GetEntrySize
NAME
GetEntrySize -- obtain size of current entry
SYNOPSIS
RESULT = GetEntrySize
FUNCTION
This command returns the size of the current entry in the outbound
list. The size is returned in RESULT.
All entries except file requests have en size.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the filesize is returned in RESULT.
5 (RC_WARN) - if the current entry if a file request
10 (RC_ERROR) - if the outbound list is empty.
RESULT
The size of the current entry in the outbound list.
BUGS
None known.
SEE ALSO
GetEntryAddress, GetEntryDate, GetEntryFilename, GetEntryFlowfile,
GetEntryNum, GetEntryStatus, GetEntrySystem, GetEntryType,
GetFlowEntry
Reflex/GetEntryStatus Reflex/GetEntryStatus
NAME
GetEntryStatus -- obtain status of current entry
SYNOPSIS
RESULT = GetEntryStatus
FUNCTION
This command will obtain the status of the current entry in the
outbound list. The status is returned in RESULT.
The status is in most cases the flavour of the file, i.e. Normal,
Crash, Hold or Direct. Only file requests and requests at your
system have got a different status.
Orphan and empty files haven't got a status.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if a status is returned in RESULT.
5 (RC_WARN) - current entry has got no status (i.e. orphan or
empty file).
10 (RC_ERROR) - if the outbound list is empty.
RESULT
The status of the current entry as a number:
"1" - Normal (flavour of entry is normal)
"2" - Crash (flavour of entry is crash)
"3" - Hold (flavour of entry is hold)
"4" - Direct (flavour of entry is direct)
"5" - Freq (file request)
"6" - Req (request at your system)
BUGS
None known.
SEE ALSO
ChangeEntryStatus, GetEntryAddress, GetEntryDate,
GetEntryFilename, GetEntryFlowfile, GetEntryNum, GetEntrySize,
GetEntrySystem, GetEntryType, GetFlowEntry, SetEntryStatus
Reflex/GetEntrySystem Reflex/GetEntrySystem
NAME
GetEntrySystem -- obtain the name of the system to receive the
current entry
SYNOPSIS
RESULT = GetEntrySystem
FUNCTION
This command will return the name of the system to receive the
current entry in the outbound list. The system name is returned
in RESULT.
This command naturally requires traplist.library to be able to
return a system name.
INPUTS
None.
RETURN CODE
0 (RC_OK) - a system name is returned in RESULT.
5 (RC_WARN) - if the outbound list pointer was on an orphan or
an empty file which doesn't contain a system name.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
The system name of the current entry in the outbound list. In
other words a string like "Insomnia" is returned.
BUGS
None known.
SEE ALSO
GetEntryAddress, GetEntryDate, GetEntryFilename, GetEntryFlowfile,
GetEntryNum, GetEntrySize, GetEntryStatus, GetEntryType,
GetFlowEntry
Reflex/GetEntryType Reflex/GetEntryType
NAME
GetEntryType -- obtain type of current entry
SYNOPSIS
RESULT = GetEntryType
FUNCTION
This command obtains the type of the current entry in the outbound
list. Reflex groups entries in 9 different groups:
1. ARCMail listed in flow file (compressed mail bundle)
2. Uncompressed mail listed in flow file (mail packet)
3. Attached files listed in flow file
4. Flow file entries of a missing file
5. Uncompressed mail (4D mail packet)
6. File requests
7. Orphan files
8. Empty files
9. Requests at your system
The type is returned in RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - when a type is returned in RESULT.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
The type of the current entry in the outbound list:
"1" - Mail bundles listed in flow files
"2" - Uncompressed mail packets listed in flow files
"3" - Attached file listed in flow files
"4" - Flow file entries of missing files
"5" - 4D uncompressed mail packets
"6" - File requests
"7" - Orphan files
"8" - Empty files
"9" - Requests at your system
BUGS
None known.
SEE ALSO
GetEntryAddress, GetEntryDate, GetEntryFilename, GetEntryFlowfile,
GetEntryNum, GetEntrySize, GetEntryStatus, GetEntrySystem,
GetFlowEntry
Reflex/GetFlowEntry Reflex/GetFlowEntry
NAME
GetFlowEntry -- obtain current entry's flow file entry
SYNOPSIS
RESULT = GetFlowEntry
FUNCTION
This command returns the current entry's verbatim flow file entry.
I.e. the command returns exactly how the entry is listed in its
flow file. The flow file entry is returned in RESULT.
For example when mail is exported to 2:238/127.0 it result in a
mail bundle, e.g. 2.238.127.0.TH0 listed in 2.238.127.0.FLO. For
this example this command will return exactly how it is listed
in the flow file, i.e. "#MAIL:Outbound/2.238.127.0.TH0".
Please notice its is the verbatim entry that is returned. This
means that any mailer actions (#, ^, -, and @) is included in
the returned string. As an ARexx programmer it is you job to
check for such mailer actions and strip them if you only need the
full path to the listed file.
Requests at your system are handled like normal flow files. File
request files are accepted too - these will just return the file
to be requested.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if a flow file entry is returned in RESULT.
5 (RC_WARN) - if the current entry isn't listed in a flow file
or similar file.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
The verbatim flow file entry of the current entry in the outbound
list.
BUGS
None known.
SEE ALSO
GetEntryAddress, GetEntryDate, GetEntryFilename, GetEntryFlowfile,
GetEntryNum, GetEntrySize, GetEntryStatus, GetEntrySystem,
GetEntryType
Reflex/GetLogfile Reflex/GetLogfile
NAME
GetLogfile -- obtain name of log file
SYNOPSIS
RESULT = GetLogfile
FUNCTION
This command returns the name of the logfile inclusive full path
as specified in the Files configuration. The filename is returned
in RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - when a filename is returned in RESULT.
10 (RC_ERROR) - if no logfile is specified in the Files
configuration.
RESULT
The name of the logfile, inclusive full path, e.g.
"MAIL:log/Reflex.log".
BUGS
None known.
SEE ALSO
GetARexxDir, GetAttachDir, GetNodelist, GetOutbound, WriteLog
Reflex/GetNodelist Reflex/GetNodelist
NAME
GetNodelist -- obtain path to nodelist directory
SYNOPSIS
RESULT = GetNodelist
FUNCTION
This command returns the path to the nodelist directory as
specified in the Files configuration. The path is returned in
RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - when the nodelist path is returned in RESULT.
10 (RC_ERROR) - if no nodelist directory was specified.
RESULT
The path to the nodelist directory, e.g. "Nodelist:"
BUGS
None known.
SEE ALSO
AddPart, GetARexxDir, GetAttachDir, GetLogfile, GetOutbound
Reflex/GetNumEntries Reflex/GetNumEntries
NAME
GetNumEntries -- obtain number of entries in outbound list
SYNOPSIS
RESULT = GetNumEntries
FUNCTION
This command will in RESULT return the number of entries in the
outbound list (currently this is the same as the number of entries
in the main window listview - but this might change in a future
release).
Please notice that the number of entries in the outbound list NOT
is the same as the number of files in the outbound directory.
INPUTS
None.
RETURN CODE
0 (RC_OK) - is always returned.
RESULT
The number of entries in the outbound list.
BUGS
None known.
SEE ALSO
GetEntryNum
Reflex/GetOutbound Reflex/GetOutbound
NAME
GetOutbound -- obtain path to outbound directory
SYNOPSIS
RESULT = GetOutbound
FUNCTION
This command returns the path to the outbound directory as
specified in the Files configuration. The path is returned in
RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - when the path to the outbound directory is
returned in RESULT.
10 (RC_ERROR) - if no outbound directory was specified (this
should never occur since Reflex shouldn't start
without an outbound directory).
RESULT
The outbound directory, e.g. "MAIL:Outbound"
BUGS
None known.
SEE ALSO
AddPart, GetARexxDir, GetAttachDir, GetEntryFilename, GetLogfile,
GetNodelist
Reflex/GetPollcommand Reflex/GetPollcommand
NAME
GetPollcommand -- obtain poll command
SYNOPSIS
RESULT = GetPollCommand
FUNCTION
This command will return the poll command specified in the Mailer
configuration. The poll command is returned in RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - when a poll command is returned in RESULT.
10 (RC_ERROR) - if no poll command is specified.
RESULT
The poll command, e.g. "TrapDoor CALL %n".
BUGS
None known.
SEE ALSO
FormatPollcommand, GetPollpattern, GetPort, Poll, PollEntry
Reflex/GetPollpattern Reflex/GetPollpattern
NAME
GetPollpattern -- obtain poll pattern
SYNOPSIS
RESULT = GetPollpattern
FUNCTION
This command will return the poll pattern specified in the Mailer
configuration. The poll pattern is returned in RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - when a poll pattern is returned in RESULT.
10 (RC_ERROR) - if no poll pattern is specified.
RESULT
The poll pattern, e.g. "#[0-9]:#[0-9]/#[0-9](%|.#[0-9])".
BUGS
None known.
SEE ALSO
GetPollcommand, GetPort, MatchPollpattern
Reflex/GetPort Reflex/GetPort
NAME
GetPort -- obtain default port for poll commmand
SYNOPSIS
RESULT = GetPort
FUNCTION
This command returns the default port to be used instead of the
%p formatting code in the poll command. The default portname is
specified in the Mailer configuration. The portname is returned
in RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - when a portname is returned in RESULT.
10 (RC_ERROR) - if no default port is specified.
RESULT
The name of the default port, e.g. "TrapDoor".
BUGS
None known.
SEE ALSO
FormatPollcommand, GetPollcommand, GetPollpattern, Poll, PollEntry
Reflex/GetPubscreen Reflex/GetPubscreen
NAME
GetPubscreen -- obtain name of public screen
SYNOPSIS
RESULT = GetPubscreen
FUNCTION
This command will return the name of the public screen as
specified in the GUI configuration. The public screen name
is returned in RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if a public screen name is returned in RESULT.
10 (RC_OK) - if no public screen name is specified.
RESULT
The public screen name.
BUGS
None known.
SEE ALSO
Reflex/GetReflexAuthor Reflex/GetReflexAuthor
NAME
GetReflexAuthor -- obtain name of Reflex author
SYNOPSIS
RESULT = GetReflexAuthor
FUNCTION
This command is useless! It returns my name in RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - always returned.
RESULT
My name.
BUGS
None known - except my weird mind.
SEE ALSO
GetReflexDate, GetReflexDesc, GetReflexName
Reflex/GetReflexDate Reflex/GetReflexDate
NAME
GetReflexDate -- obtain Reflex compilataion date
SYNOPSIS
RESULT = GetReflexDate
FUNCTION
This command is more or less useless. It returns the compilation
date of Reflex.
INPUTS
None.
RETURN CODE
0 (RC_OK) - always returned.
RESULT
The compilation date. If I remember correct in the following
format "(d.m.y)" where d, m and y are day, month and year,
respectively - all one or two digit numbers.
BUGS
None known.
SEE ALSO
GetReflexAuthor, GetReflexDesc, GetReflexName
Reflex/GetReflexDesc Reflex/GetReflexDesc
NAME
GetReflexDesc -- obtain program description
SYNOPSIS
RESULT = GetReflexDesc
FUNCTION
"Useless", I say. "Correct", you agree. This command returns a
localized program description.
INPUTS
None.
RETURN CODE
0 (RC_OK) - always returned.
RESULT
Program description, localized. Currently "Fido 4D Outbound
Manager".
BUGS
None known.
SEE ALSO
GetReflexAuthor, GetReflexDate, GetReflexName
Reflex/GetReflexName Reflex/GetReflexName
NAME
GetReflexName -- obtain program name
SYNOPSIS
RESULT = GetReflexName
FUNCTION
Was I bored or what? This is the fourth useless command in a
row. It returns the program name - as if you didn't know.
INPUTS
None.
RETURN CODE
0 (RC_OK) - always returned.
RESULT
Program name; currently "Reflex".
BUGS
None.
SEE ALSO
GetReflexAuthor, GetReflexDate, GetReflexDesc
Reflex/GetReflexRelease Reflex/GetReflexRelease
NAME
GetReflexRelease -- obtain program release
SYNOPSIS
RESULT = GetReflexRelease
FUNCTION
This command can be used to obtain the program release. You can
use this command to check against a release if certain commands
in a future isn't available in all versions.
INPUTS
None.
RETURN CODE
0 (RC_OK) - always returned.
RESULT
Program release.
BUGS
None known.
SEE ALSO
GetReflexVersion
Reflex/GetReflexVersion Reflex/GetReflexVersion
NAME
GetReflexVersion -- obtain program version
SYNOPSIS
RESULT = GetReflexVersion
FUNCTION
This command returns the program version.
INPUTS
None.
RETURN CODE
0 (RC_OK) - always returned.
RESULT
Program version.
BUGS
None known.
SEE ALSO
GetReflexRelease
Reflex/HideGUI Reflex/HideGUI
NAME
HideGUI -- hide the GUI of Reflex
SYNOPSIS
HideGUI
FUNCTION
This command will put away the graphic user interface. The GUI
does not have to be open to use this command.
If your ARexx script hides the GUI when it starts it should
reopen the GUI before it ends if the GUI was open when it
started.
INPUTS
None.
RETURN CODE
0 (RC_OK) - is always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
IsGUI, ShowGUI
Reflex/IsCfgChanged Reflex/IsCfgChanged
NAME
IsCfgChanged -- has settings changed?
SYNOPSIS
IsCfgChanged
FUNCTION
This command reports the state of the settings.
INPUTS
None.
RETURN CODE
0 (RC_OK) - no changes have been made.
5 (RC_WARN) - changes have been made to the settings.
RESULT
None.
BUGS
None known.
SEE ALSO
SaveSettings
Reflex/IsEmpty Reflex/IsEmpty
NAME
IsEmpty -- is there empty files in outbound list?
SYNOPSIS
IsEmpty
FUNCTION
This command tells you if there exists empty files in the
outbound list.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the outbound list doesn't contain empty files.
5 (RC_WARN) - if the outbound list contains empty files
RESULT
None.
BUGS
None known.
SEE ALSO
IsFlowFile, IsFlowMail, IsFlowPkt, IsFreq, IsMissing, IsOrphan,
IsPkt, IsReq
Reflex/IsFlowFile Reflex/IsFlowFile
NAME
IsFlowFile -- is there attached files in outbound list?
SYNOPSIS
IsFlowFile NODE/K
FUNCTION
This command reports if there exists attached files in the
outbound list.
Specifying the NODE option enables you to check for attached files
for a certain node. This requires traplist.library.
INPUTS
NODE/K - a Fido address for which to check for attached files
in the outbound list. traplist.library is needed too use
the NODE/K option.
RETURN CODE
0 (RC_OK) - there isn't any attached files in the outbound
list (for the node in question).
5 (RC_WARN) - if there does indeed exist attached files in the
outbound list (for the node in question).
10 (RC_ERROR) - (only with NODE/K) traplist.library not available.
10 (RC_ERROR) - (only with NODe/K) specified Fido address not
valid.
RESULT
None.
BUGS
None known.
SEE ALSO
IsEmpty, IsFlowMail, IsFlowPkt, IsFreq, IsMissing, IsOrphan,
IsPkt, IsReq
Reflex/IsFlowMail Reflex/IsFlowMail
NAME
IsFlowMail -- is there compressed mail bundles in outbound list?
SYNOPSIS
IsFlowMail NODE/K
FUNCTION
This command reports if there exists compressed mail bundles in
the outbound list.
Specifying the NODE option enables you to check for compressed
mail bundles for a certain node. This requires traplist.library.
INPUTS
NODE/K - a Fido address for which to check for compressed mail
bundles in the outbound list. traplist.library is needed
to use the NODE/K option.
RETURN CODE
0 (RC_OK) - there isn't any compressed mail bundles in the
outbound list (for the node in question).
5 (RC_WARN) - if there does indeed exist compressed mail bundles
in the outbound list (for the node in question).
10 (RC_ERROR) - (only with NODE/K) traplist.library not available.
10 (RC_ERROR) - (only with NODe/K) specified Fido address not
valid.
RESULT
None.
BUGS
None known.
SEE ALSO
IsEmpty, IsFlowFile, IsFlowPkt, IsFreq, IsMissing, IsOrphan,
IsPkt, IsReq
Reflex/IsFlowPkt Reflex/IsFlowPkt
NAME
IsFlowPkt -- is there uncompressed mail listed in flow files in
outbound list?
SYNOPSIS
IsFlowPkt NODE/K
FUNCTION
This command reports if there exists uncompressed mail listed in
flow files in the outbound list.
Specifying the NODE option enables you to check for uncompressed
mail listed in flow files for a certain node. This requires
traplist.library.
INPUTS
NODE/K - a Fido address for which to check for uncompressed mail
listed in flow files in the outbound list.
traplist.library is needed to use the NODE/K option.
RETURN CODE
0 (RC_OK) - there isn't any uncompressed mail listed in flow
files in the outbound list (for the node in
question).
5 (RC_WARN) - if there does indeed exist uncompressed mail
listed in flow files in the outbound list (for the
node in question).
10 (RC_ERROR) - (only with NODE/K) traplist.library not available.
10 (RC_ERROR) - (only with NODe/K) specified Fido address not
valid.
RESULT
None.
BUGS
None known.
SEE ALSO
IsEmpty, IsFlowFile, IsFlowMail, IsFreq, IsMissing, IsOrphan,
IsPkt, IsReq
Reflex/IsFreq Reflex/IsFreq
NAME
IsFreq -- is there file requests in outbound list?
SYNOPSIS
IsFreq NODE/K
FUNCTION
This command reports if there exists file requests in the outbound
list.
Specifying the NODE option enables you to check for file requests
for a certain node. This requires traplist.library.
INPUTS
NODE/K - a Fido address for which to check for file requests in
the outbound list. traplist.library is needed to use the
NODE/K option.
RETURN CODE
0 (RC_OK) - there isn't any file requests the outbound list
(for the node in question).
5 (RC_WARN) - if there does indeed exist file requests in the
outbound list (for the node in question).
10 (RC_ERROR) - (only with NODE/K) traplist.library not available.
10 (RC_ERROR) - (only with NODe/K) specified Fido address not
valid.
RESULT
None.
BUGS
None known.
SEE ALSO
IsEmpty, IsFlowFile, IsFlowMail, IsFlowPkt, IsMissing, IsOrphan,
IsPkt, IsReq
Reflex/IsGUI Reflex/IsGUI
NAME
IsGUI -- check state of Reflex GUI
SYNOPSIS
IsGUI
FUNCTION
Reports the current state of the main graphic user interface.
INPUTS
None.
RETURN CODE
0 (RC_OK) - GUI is closed.
5 (RC_WARN) - GUI is open.
RESULT
None.
BUGS
None known.
SEE ALSO
HideGUI, ShowGUI
Reflex/IsMissing Reflex/IsMissing
NAME
IsMissing -- is there flow file entries of missing files in
outbound list?
SYNOPSIS
IsMissing NODE/K
FUNCTION
This command reports if there exists flow file entries of missing
files in the outbound list.
Specifying the NODE option enables you to check for flow file
entries of missing files for a certain node. This requires
traplist.library.
INPUTS
NODE/K - a Fido address for which to check for flow file entries
of missing files in the outbound list. traplist.library
is needed to use the NODE/K option.
RETURN CODE
0 (RC_OK) - there isn't any flow file entries of missing files
in the outbound list (for the node in question).
5 (RC_WARN) - if there does indeed exist flow file entries of
missing file entries in the outbound list (for the
node in question).
10 (RC_ERROR) - (only with NODE/K) traplist.library not available.
10 (RC_ERROR) - (only with NODe/K) specified Fido address not
valid.
RESULT
None.
BUGS
None known.
SEE ALSO
IsEmpty, IsFlowFile, IsFlowMail, IsFlowPkt, IsFreq, IsOrphan,
IsPkt, IsReq
Reflex/IsNode Reflex/IsNode
NAME
IsNode -- check if a node is listed in outbound list
SYNOPSIS
IsNode NODE/A
FUNCTION
This command tells you if a certain node is listed in the
outbound list.
The command requires currently traplist.library.
INPUTS
NODE/A - Fido address of node to look for in outbound list.
RETURN CODE
0 (RC_OK) - if node is listed in outbound list.
5 (RC_WARN) - if node isn't listed in outbound list.
10 (RC_ERROR) - traplist.library not available.
10 (RC_ERROR) - specified Fido address not valid.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNode
Reflex/IsOrphan Reflex/IsOrphan
NAME
IsEmpty -- is there orphan files in outbound list?
SYNOPSIS
IsEmpty
FUNCTION
This command tells you if there exists orphan files in the
outbound list.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the outbound list doesn't contain orphan files.
5 (RC_WARN) - if the outbound list contains empty files
RESULT
None.
BUGS
None known.
SEE ALSO
IsEmpty, IsFlowFile, IsFlowMail, IsFlowPkt, IsFreq, IsMissing,
IsPkt, IsReq
Reflex/IsPkt Reflex/IsPkt
NAME
IsPkt -- is there 4D uncompressed mail in outbound list?
SYNOPSIS
IsPkt NODE/K
FUNCTION
This command reports if there exists 4D uncompressed mail in the
outbound list.
Specifying the NODE option enables you to check for 4D
uncompressed mail for a certain node. This requires
traplist.library.
INPUTS
NODE/K - a Fido address for which to check for 4D uncompressed
mail in the outbound list. traplist.library is needed to
use the NODE/K option.
RETURN CODE
0 (RC_OK) - there isn't any 4D uncompressed mail in the
outbound list (for the node in question).
5 (RC_WARN) - if there does indeed exist 4D uncompressed mail in
the outbound list (for the node in question).
10 (RC_ERROR) - (only with NODE/K) traplist.library not available.
10 (RC_ERROR) - (only with NODe/K) specified Fido address not
valid.
RESULT
None.
BUGS
None known.
SEE ALSO
IsEmpty, IsFlowFile, IsFlowMail, IsFlowPkt, IsFreq, IsMissing,
IsOrphan, IsReq
Reflex/IsRegistered Reflex/IsRegistered
NAME
IsRegistered -- check state of Reflex
SYNOPSIS
IsRegistered
FUNCTION
Reports the state of Reflex; registered version or unregistered
evaluation version.
INPUTS
None.
RETURN CODE
0 (RC_OK) - unregistered evaluation version.
5 (RC_WARN) - registered version.
RESULT
None.
BUGS
None known.
SEE ALSO
Reflex/IsReq Reflex/IsReq
NAME
IsReq -- is there requests at your system in outbound list?
SYNOPSIS
IsReq NODE/K
FUNCTION
This command reports if there exists requests at your system in
the outbound list.
Specifying the NODE option enables you to check for requests at
your system for a certain node. This requires traplist.library.
INPUTS
NODE/K - a Fido address for which to check for requests at your
system in the outbound list. traplist.library is needed
to use the NODE/K option.
RETURN CODE
0 (RC_OK) - there isn't any requests at your system in the
outbound list (for the node in question).
5 (RC_WARN) - if there does indeed exist requests at your system
in the outbound list (for the node in question).
10 (RC_ERROR) - (only with NODE/K) traplist.library not available.
10 (RC_ERROR) - (only with NODE/K) specified Fido address not
valid.
RESULT
None.
BUGS
None known.
SEE ALSO
IsEmpty, IsFlowFile, IsFlowMail, IsFlowPkt, IsFreq, IsMissing,
IsOrphan, IsPkt
Reflex/LastEntry Reflex/LastEntry
NAME
LastEntry -- move outbound list pointer to last entry
SYNOPSIS
LastEntry
FUNCTION
This command moves the outbound list pointer to the last entry in
the outbound list.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the outbound list pointer was moved to the last
entry in the outbound list.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNextNode, FindNode, FirstEmpty, FirstEntry, FirstNode,
FirstOrphan, NextEntry, NextNode, NextNodeEntry, PrevEntry,
PrevNode, PrevNodeEntry
Reflex/LockARexx Reflex/LockARexx
NAME
LockARexx -- obtain ARexx ownership of Reflex
SYNOPSIS
LockARexx
FUNCTION
This command gives you exclusive usage of Reflex' ARexx port.
Only your script is able to communicate with Reflex when Reflex
is ARexx locked by your script.
Using LockARexx will prevent other scripts from interfering if
you're performing delicate operations on the outbound directory
like deleting files.
When Reflex is ARexx locked all ARexx commands will give a return
code of 20 (RC_FATAL) to all scripts except the one that ARexx
locked Reflex.
Having implemented ARexx locking means that all scripts ought
to ARexx lock Reflex in the beginning of the script. If you do
not ARexx lock Reflex another script might steal Reflex from you
if that script uses ARexx locking.
It is very important that you remember to ARexx unlock Reflex
before your script ends. If not you will not be able to access
Reflex' ARexx port, because only your script (and ONLY yours)
could have had unlocked the ARexx port. Therefore use of ARexx
'onerror' is highly recommended.
If you while developing ARexx scripts end with a Reflex that is
both GUI and ARexx locked you can quit Reflex by sending Reflex a
CTRL-C or CTRL-E. No need to reboot.
INPUTS
None.
RETURN CODE
0 (RC_OK) - always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
LockGUI, QueryOwnership, UnlockARexx
Reflex/LockGUI Reflex/LockGUI
NAME
LockGUI -- disable all user input
SYNOPSIS
LockGUI
FUNCTION
This command will lock the GUI, i.e. all user input is disabled.
This command must be matched with a UnlockGUI (for this use of
ARexx 'onerror' is recommended). Locking the GUI will prevent that
the user interferes with the actions of an ARexx script.
Normal use of LockGUI would be to lock the GUI at the start of
a script and unlock it just before the script ends.
INPUTS
None.
RETURN CODE
0 (RC_OK) - is always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
UnlockGUI, LockARexx
Reflex/Maintenance Reflex/Maintenance
NAME
Maintenance -- perform a maintenance on outbound directory
SYNOPSIS
Maintenance
FUNCTION
When Reflex performs a maintenance on the outbound directory three
types of entries can be affected:
- empty files (files of size zero with no destination) will be
deleted
- orphan files (other files with no destination) will be deleted
- entries of missing files in the flow files will be deleted
The maintenance for each type of entry will only take effect if
maintenance is enabled for the type in question in the Deletion
configuration window.
A rescan is performed before the actual maintenance.
INPUTS
None.
RETURN CODE
0 (RC_OK) - is always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
Rescan
Reflex/MatchAddress Reflex/MatchAddress
NAME
MatchAddress -- check if an address matches a pattern
SYNOPSIS
MatchAddress ADDRESS/A,PATTERN/A
FUNCTION
This command compares a specified Fido address with a specified
pattern. The pattern can contain all valid AmigaDOS wildcards.
INPUTS
ADDRESS/A - a Fido address to match against a pattern.
PATTERN/A - pattern to check address against.
RETURN CODE
0 (RC_OK) - specified Fido address matches specified pattern.
5 (RC_WARN) - specified Fido address does not match specified
pattern.
RESULT
None.
BUGS
None known.
SEE ALSO
MatchPollpattern
Reflex/MatchPollpattern Reflex/MatchPollpattern
NAME
MatchPollpattern -- check if an address matches poll pattern
SYNOPSIS
MatchPollpattern NODE/A
FUNCTION
This command compares a specified Fido address with the poll
pattern specified in the Mailer configuration. If there is a
match calls to the system is allowed.
INPUTS
NODE/A - Fido address of system to check.
RETURN CODE
0 (RC_OK) - if address matches poll pattern, i.e. calls are
allowed.
5 (RC_WARN) - address didn't match poll pattern.
RESULT
None.
BUGS
None known.
SEE ALSO
FormatPollpattern, GetPollpattern, MatchAddress
Reflex/NB_GetNumNodes Reflex/NB_GetNumNodes
NAME
NB_GetNumNodes -- retrieve number of nodes i Nodebook
SYNOPSIS
RESULT = NB_GetNumNodes
FUNCTION
This command will return the number of nodes currently listed in
the Nodebook. The number is returned in RESULT.
INPUTS
None.
RETURN CODE
0 (RC_OK) - always returned.
RESULT
Number of nodes in Nodebook.
BUGS
None known.
SEE ALSO
EditNodebook, NB_IsNode, NB_NodeReq, NB_Options, NB_Phone,
NB_Poll, NB_Port, NB_PreventCall
Reflex/NB_IsNode Reflex/NB_IsNode
NAME
NB_IsNode -- check if a node is listed in Nodebook
SYNOPSIS
NB_IsNode NODE/A
FUNCTION
This command tells you if a certain node is listed in the
Nodebook.
The command requires currently traplist.library.
INPUTS
NODE/A - Fido address of node to look for in Nodebook.
RETURN CODE
0 (RC_OK) - if node is listed in Nodebook.
5 (RC_WARN) - if node isn't listed in Nodebook.
10 (RC_ERROR) - traplist.library not available.
10 (RC_ERROR) - specified Fido address not valid.
RESULT
None.
BUGS
None known.
SEE ALSO
EditNodebook, NB_GetNumNodes, NB_NodeReq, NB_Options, NB_Phone,
NB_Poll, NB_Port, NB_PreventCall
Reflex/NB_NodeReq Reflex/NB_NodeReq
NAME
NB_NodeReq -- check if system will be listed in Node requester
SYNOPSIS
NB_NodeReq NODE/A
FUNCTION
This command will tell you if the system will be listed in the
Node requester. I can't see you can have any use of this command
to anything, but use it if you can.
This command currently requires traplist.library.
INPUTS
NODE/A - Fido address of node which to check.
RETURN CODE
0 (RC_OK) - if system not listed in Node requester.
5 (RC_WARN) - if system listed in Node requester.
5 (RC_WARN) - node not listed in Nodebook.
10 (RC_ERROR) - traplist.library not available.
10 (RC_ERROR) - specified Fido address not valid.
Please notice, that a return code of 5 doesn't fully imply that
the 'Node requester' checkbox in the Nodebook Editor is ticked for
the node in question. 5 is returned too if the node isn't listed
in the Nodebook. Therefore use NB_IsNode to check for the node in
the Nodebook, and NB_NodeReq to check if it will be in the Node
requester.
RESULT
None.
BUGS
None known.
SEE ALSO
EditNodebook, NB_GetNumNodes, NB_IsNode, NB_Options, NB_Phone,
NB_Poll, NB_Port, NB_PreventCall
Reflex/NB_Options Reflex/NB_Options
NAME
NB_Options -- query alternative options for a node
SYNOPSIS
RESULT = NB_Options NODE/A
FUNCTION
This command will return alternative options for a certain node if
such exist in the Nodebook. The alternative options will be
returned in RESULT.
This command currently requires traplist.library.
INPUTS
NODE/A - Fido address of node for which to query for alternative
options.
RETURN CODE
0 (RC_OK) - if alternative options is listed for the node in
the Nodebook. Options is returned in RESULT.
5 (RC_WARN) - no alternative options is listed for the node.
5 (RC_WARN) - node not listed in Nodebook.
10 (RC_ERROR) - traplist.library not available.
10 (RC_ERROR) - specified Fido address not valid.
RESULT
Alternative options for the node.
BUGS
None known.
SEE ALSO
EditNodebook, NB_GetNumNodes, NB_IsNode, NB_NodeReq, NB_Phone,
NB_Poll, NB_Port, NB_PreventCall
Reflex/NB_Phone Reflex/NB_Phone
NAME
NB_Phone -- query alternative phone number for a node
SYNOPSIS
RESULT = NB_Phone NODE/A
FUNCTION
This command will return an alternative phone number for a certain
node if such exist in the Nodebook. The alternative phone number
will be returned in RESULT.
This command currently requires traplist.library.
INPUTS
NODE/A - Fido address of node for which to query for an
alternative phone number.
RETURN CODE
0 (RC_OK) - if an alternative phone number is listed for the
node in the Nodebook. The phone number is returned
in RESULT.
5 (RC_WARN) - no alternative phone number is listed for the
node.
5 (RC_WARN) - node not listed in Nodebook.
10 (RC_ERROR) - traplist.library not available.
10 (RC_ERROR) - specified Fido address not valid.
RESULT
Alternative phone number for the node.
BUGS
None known.
SEE ALSO
EditNodebook, NB_GetNumNodes, NB_IsNode, NB_NodeReq, NB_Options,
NB_Poll, NB_Port, NB_PreventCall
Reflex/NB_Poll Reflex/NB_Poll
NAME
NB_Poll -- query alternative address for a node
SYNOPSIS
RESULT = NB_Poll NODE/A
FUNCTION
This command will return an alternative Fido address for a certain
node if such exist in the Nodebook. The alternative poll address
will be returned in RESULT.
This command currently requires traplist.library.
INPUTS
NODE/A - Fido address of node for which to query for an
alternative Fido address.
RETURN CODE
0 (RC_OK) - if an alternative address is listed for the node
in the Nodebook. Address is returned in RESULT.
5 (RC_WARN) - no alternative poll address is listed for the
node.
5 (RC_WARN) - node not listed in Nodebook.
10 (RC_ERROR) - traplist.library not available.
10 (RC_ERROR) - specified Fido address not valid.
RESULT
Alternative poll address for the node.
BUGS
None known.
SEE ALSO
EditNodebook, NB_GetNumNodes, NB_IsNode, NB_NodeReq, NB_Options,
NB_Phone, NB_Port, NB_PreventCall
Reflex/NB_Port Reflex/NB_Port
NAME
NB_Port -- query alternative port for a node
SYNOPSIS
RESULT = NB_Port NODE/A
FUNCTION
This command will return an alternative port for a certain node
if such exist in the Nodebook. The alternative port will be
returned in RESULT.
This command currently requires traplist.library.
INPUTS
NODE/A - Fido address of node for which to query for an
alternative port.
RETURN CODE
0 (RC_OK) - if an alternative port is listed for the node in
the Nodebook. Port is returned in RESULT.
5 (RC_WARN) - no alternative port is listed for the node.
5 (RC_WARN) - node not listed in Nodebook.
10 (RC_ERROR) - traplist.library not available.
10 (RC_ERROR) - specified Fido address not valid.
RESULT
Alternative port for the node.
BUGS
None known.
SEE ALSO
EditNodebook, NB_GetNumNodes, NB_IsNode, NB_NodeReq, NB_Options,
NB_Phone, NB_Poll, NB_PreventCall
Reflex/NB_PreventCall Reflex/NB_PreventCall
NAME
NB_PreventCall -- check if call to system is allowed
SYNOPSIS
NB_PreventCall NODE/A
FUNCTION
This command will tell you if calls to the system is allowed.
This command currently requires traplist.library.
INPUTS
NODE/A - Fido address of node which to check.
RETURN CODE
0 (RC_OK) - if calls to this system is cancelled.
5 (RC_WARN) - if calls to this system is allowed.
5 (RC_WARN) - node not listed in Nodebook.
10 (RC_ERROR) - traplist.library not available.
10 (RC_ERROR) - specified Fido address not valid.
Please notice, that a return code of 5 doesn't fully imply that
the 'Prevent calls' checkbox in the Nodebook Editor isn't ticked
for the node in question. 5 is returned too if the node isn't
listed in the Nodebook. Therefore use NB_IsNode to check for the
node in the Nodebook, and NB_PreventCall to check if calls to the
system is allowed.
RESULT
None.
BUGS
None known.
SEE ALSO
EditNodebook, NB_GetNumNodes, NB_IsNode, NB_NodeReq, NB_Options,
NB_Phone, NB_Poll, NB_Port
Reflex/NextEntry Reflex/NextEntry
NAME
NextEntry -- move outbound list pointer to next entry
SYNOPSIS
NextEntry
FUNCTION
This command will move the outbound list pointer to the next entry
in the outbound list.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if outbound list pointer was moved to the next
entry in the outbound list.
5 (RC_WARN) - if the outbound list pointer was on the last entry
in in the outbound list.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNextNode, FindNode, FirstEmpty, FirstEntry, FirstNode,
FirstOrphan, LastEntry, NextNode, NextNodeEntry, PrevEntry,
PrevNode, PrevNodeEntry
Reflex/NextNode Reflex/NextNode
NAME
NextNode -- move outbound list pointer to next entry in outbound
list with Fido address different from current
SYNOPSIS
NextNode
FUNCTION
This command will move the outbound list pointer to the next entry
in the outbound list with a Fido address different from the Fido
address of the current entry.
In other words this command will skip all entries with the same
Fido address as the current entry.
The command will not move the outbound list pointer to an orphan
or empty file.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the outbound list pointer was moved to the next
entry in the outbound list with a Fido address
different from the current.
5 (RC_WARN) - if no succeeding entry in the outbound list has got
a Fido address different the current.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNextNode, FindNode, FirstEmpty, FirstEntry, FirstNode,
FirstOrphan, LastEntry, NextEntry, NextNodeEntry, PrevEntry,
PrevNode, PrevNodeEntry
Reflex/NextNodeEntry Reflex/NextNodeEntry
NAME
NextNodeEntry -- move outbound list pointer to next entry with
same Fido address
SYNOPSIS
NextNodeEntry
FUNCTION
This command will move the outbound list pointer to the next entry
in the outbound list with the same Fido address as the current
entry.
This command can also be used to move to the next empty file or
to the next orphan file.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the outbound list pointer was moved to the next
entry with the same Fido address as the current.
5 (RC_WARN) - if the succeding entry in the outbound list
doesn't have the same Fido address.
5 (RC_WARN) - if the current entry already is the last entry in
the outbound list.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNextNode, FindNode, FirstEmpty, FirstEntry, FirstNode,
FirstOrphan, LastEntry, NextEntry, NextNode, PrevEntry, PrevNode,
PrevNodeEntry
Reflex/OpenProgress Reflex/OpenProgress
NAME
OpenProgress -- open progress requester
SYNOPSIS
RESULT = OpenProgress TITLE/K,TEXT/A,MINTEXT/A,MAXTEXT/A,MAX/N/A,
CURRENT/N/A
FUNCTION
This command opens a progress requester. The progress requester
is opened asynchronously, and you address it using the command
UpdateProgress to update the progress requester, and the command
CloseProgress to close the progress requester. To address a
progress requester you will need a key.
A short text will be put above the progress bar (TEXT/A), and a
minimum and maximum text will be put below the progress bar to
the right and left, respectively (MINTEXT/A and MAXTEXT/A,
respectively).
A progress requester always starts at zero and ends at a maximum
value specified by you (MAX/N/A).
An empty progress requester has got a current value of zero. The
initial value is specified with the CURRENT/N/A argument. When
the progress requester opens it will be updated to this value.
Optionally you can change the window title of the requester using
the TITLE keyword.
As mentioned before to address a progress requester you will need
a key, which the OpenProgress command returns in RESULT. This key
is needed for ALL communication with the progress requester. If
you loose this key you will not be able to address the progress
requester and it will be left hanging when your script ends.
It is your job to close any progress requesters that you have
opened. Use of ARexx 'onerror' is recommended for this. A hanging
progress requester when your script have ended is the proof of
a badly written ARexx script.
Leftover progress requesters will be closed when Reflex quits,
but this is not the right way to close progress requesters. This
is only mentioned for programmers that might end with a hanging
progress requester when developing ARexx scripts.
Multiple progress requesters can be opened at the same time.
INPUTS
The examples are all taken from the progress requester that opens
when Reflex scans the outbound directory.
TITLE/K - window title. Defaults to 'Reflex message'.
TEXT/A - short one-line text to display above the progress
bar; e.g. "Scanning outbound".
MINTEXT/A - Minimum text to be displayed to the left under the
progress bar. This text does not have anything to
do with the minimum value the requester displays; it
could be "0 %" or "Start". The scanning outbound
progress requester has got "1" for MINTEXT/A.
MAXTEXT/A - Maximum text to be displayed to the right under the
progress bar. This text does not have anything to
do with the maximum value the requester displays; it
could be "100 %" or "End"; e.g. the number of files
in the outbound directory - converted to a string.
MAX/N/A - The maximum value the progress requester shall
display; i.e. the progress requester is from zero to
this value; in the scanning outbound progress
requester case this is the number of files in the
outbound directory. This value must be greater than
zero.
CURRENT/N/A - This is the current value of the progress requester.
When Reflex opens the progress requester the
progress will be updated to this value; the scanning
outbound progress requester opens with this value
set to 1.
RETURN CODE
0 (RC_OK) - is always returned. Examine RESULT to see if a
progress requester was opened.
RESULT
A progress requester identifier key. This key is needed for all
communication with the progress requester.
This key is a number and is this number zero Reflex didn't succeed
in opening a progress requester. It will be alright to pass this
zero value to UpdateProgress and CloseProgress.
EXAMPLE
This will probably be the only example. This short ARexx code
opens two progress requesters, updates them, and finally closes
them.
OPENPROGRESS '"Progress requester test" "0" "100" 200 0'
progress = result
OPENPROGRESS '"Progress requester 2" "0" "50" 100 0'
progress2 = result
i = 0
DO WHILE (i < 200)
CALL DELAY(2)
i = i + 1
UPDATEPROGRESS progress i
IF (i < 100) THEN DO
UPDATEPROGRESS progress2 i
END
IF (i = 100) THEN DO
CLOSEPROGRESS progress2
END
END
CLOSEPROGRESS progress
The script uses rexxsupport.library for the DELAY() function as
far as I know.
BUGS
It seems EasyREXX doesn't handle strings with spaces too well.
A string like "Scanning outbound" doesn't work unless I surround
all arguments in single quotes. I don't really know how to use
ARexx, so EasyREXX might do it correctly. Just do it like the
example above and it works. A hard space (ASCII 160) could be
used instead of normal spaces (ASCII 32) I guess.
SEE ALSO
CloseProgress, UpdateProgress
Reflex/Poll Reflex/Poll
NAME
Poll -- poll a system
SYNOPSIS
Poll NODE/A,SYNC/S,POLLCOMMAND/K
FUNCTION
This system will poll another system. This requires a poll command
to be specified in the Mailer configuration.
Please notice, that Reflex might prevent certain calls. Calls to
Fido address that doesn't match the poll pattern are cancelled,
and calls to certain systems can be prevented according to certain
Nodebook settings.
The poll command is executed asynchronously. Specifying the SYNC
switch will execute the poll command synchronously.
Another poll command can be specified to be used instead of the
one specified in the Mailer configuration.
INPUTS
NODE/A - Fido address of system to poll. This can be 'BOSS'
if your mailer supports this.
SYNC/S - execute poll command synchronously.
POLLCOMMAND/K - another poll command to use instead of the one
specified in the Mailer configuration.
RETURN CODE
0 (RC_OK) - if Reflex tried to poll the other system.
10 (RC_ERROR) - if the specified Fido address is invalid (requires
traplist.library).
RESULT
None.
BUGS
None known.
SEE ALSO
FormatPollcommand, GetPollcommand, PollEntry
Reflex/PollEntry Reflex/PollEntry
NAME
PollEntry -- poll system of current entry
SYNOPSIS
PollEntry SYNC/S,POLLCOMMAND/K
FUNCTION
This system will poll the system of the current entry. This
requires a poll command to be specified in the Mailer
configuration.
Please notice, that Reflex might prevent certain calls. Calls to
Fido address that doesn't match the poll pattern are cancelled,
and calls to certain systems can be prevented according to certain
Nodebook settings.
The poll command is executed asynchronously. Specifying the SYNC
switch will execute the poll command synchronously.
Another poll command can be specified to be used instead of the
one specified in the Mailer configuration.
INPUTS
SYNC/S - execute poll command synchronously.
POLLCOMMAND/K - another poll command to use instead of the one
specified in the Mailer configuration.
RETURN CODE
0 (RC_OK) - is returned.
RESULT
None.
BUGS
None known.
NOTE
The main window 'Poll' gadget is disabled when the current entry
in the listview is a request at your own system, i.e. you can't
call the system. The PollEntry command can poll the system of the
current entry even if its a request at your system.
SEE ALSO
FormatPollcommand, GetPollcommand, Poll
Reflex/PrevEntry Reflex/PrevEntry
NAME
PrevEntry -- move outbound list pointer to previous entry
SYNOPSIS
PrevEntry
FUNCTION
This command moves the outbound list pointer to the previous entry
in the outbound list.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the outbound list pointer was moved to the
previous entry in the outbound list.
5 (RC_WARN) - if the outbound list pointer was on the first
entry in the outbound list.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNextNode, FindNode, FirstEmpty, FirstEntry, FirstNode,
FirstOrphan, LastEntry, NextEntry, NextNode, NextNodeEntry,
PrevNode, PrevNodeEntry
Reflex/PrevNode Reflex/PrevNode
NAME
PrevNode -- move outbound list pointer to first preceding entry
with Fido address different from current
SYNOPSIS
PrevNode
FUNCTION
This command moves the outbound list pointer to the first
preceding entry with a Fido address different from the Fido
address of the current entry.
With "first entry" is meant the first entry in the outbound list
with the other Fido address. Is the outbound list pointer placed
as shown below:
<N1> <N1> <N1> <N2> <N2> <N2> <N2>
^
|
where <N1> and <N2> are entries with different Fido addresses.
Use of PrevNode will result in the following placement of the
outbound list pointer:
<N1> <N1> <N1> <N2> <N2> <N2> <N2>
^
|
In other words the command will go back and skip all entries with
a Fido address the same as the current entry and in addition skip
to the first entry with a Fido address different from the current.
The command will also skip orphan and empty files.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the outbound list pointer was moved to the
first preceding entry in the outbound list with a
Fido address different from the current.
5 (RC_WARN) - if there was no preceding entry with a Fido
address different from the current. The outbound
list pointer will not have moved.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNextNode, FindNode, FirstEmpty, FirstEntry, FirstNode,
FirstOrphan, LastEntry, NextEntry, NextNode, NextNodeEntry,
PrevEntry, PrevNodeEntry.
Reflex/PrevNodeEntry Reflex/PrevNodeEntry
NAME
PrevNodeEntry -- move outbound list pointer to previous entry
with same Fido address
SYNOPSIS
PrevNodeEntry
FUNCTION
This command will move the outbound list pointer to the previous
entry in the outbound list with the same Fido address as the
current entry.
This command can also be used to move to the previous empty file
or to the previous orphan file.
INPUTS
None.
RETURN CODE
0 (RC_OK) - if the outbound list pointer was move to previous
entry with the same Fido address.
5 (RC_WARN) - if the previous entry didn't have the same Fido
address.
5 (RC_WARN) - if the current entry already is the first entry in
the outbound list.
10 (RC_ERROR) - if the outbound list is empty.
RESULT
None.
BUGS
None known.
SEE ALSO
FindNextNode, FindNode, FirstEmpty, FirstEntry, FirstNode,
FirstOrphan, LastEntry, NextEntry, NextNode, NextNodeEntry,
PrevEntry, PrevNode
Reflex/PrintList Reflex/PrintList
NAME
PrintList -- print contents of outbound list to printer
SYNOPSIS
PrintList
FUNCTION
This command will print the contents of the outbound list as
displayed in the listview to the printer (PRT:)
INPUTS
None.
RETURN CODE
0 (RC_OK) - always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
Reflex/QueryOwnership Reflex/QueryOwnership
NAME
QueryOwnership -- query ownership state of ARexx port
SYNOPSIS
QueryOwnership LOCK/S
FUNCTION
This command will tell you if Reflex is ARexx locked by another
ARexx script or not. This is the only command that you actually
can use if the ARexx port is locked by another script.
If you by using QueryOwnership learns that nobody currently has
got ARexx ownership over Reflex' ARexx port there is no guarantee
that a LockARexx immediately after will succeed; another script
might have ARexx locked Reflex between the two commands.
Therefore use the LOCK switch which will give you ownership over
the ARexx port if it was free. Please refer to LockARexx for more
information about ARexx locking. Do you become ownership over
Reflex' ARexx port this way, you must match this command with an
UnlockARexx before the script ends. Use of ARexx 'onerror' is
highly recommended.
Do you learn that another script has ARexx locked Reflex you can
either wait a few seconds and query for ownership again or exit
you script. The choice depends on you script.
INPUTS
LOCK/S - if the ARexx port was free you will become ownership over
the port.
RETURN CODE
0 (RC_OK) - if Reflex wasn't ARexx locked by another script. If
you had specified the LOCK switch you will now have
ownership over Reflex' ARexx port.
5 (RC_WARN) - another script has got ownership over Reflex' ARexx
port. Wait a few seconds and query again - or exit.
RESULT
None.
BUGS
None known.
SEE ALSO
LockARexx, LockGUI, UnlockARexx
Reflex/Quit Reflex/Quit
NAME
Quit -- quit Reflex
SYNOPSIS
Quit NOREQ/S,NOSAVE/S
FUNCTION
This command simply quits Reflex. With no switches set Reflex
will prompt the user with a "Save settings?" requester if the
settings have changed.
The NOREQ switch will suppress this requester. Reflex will default
save the settings, unless the NOSAVE switch is specified
INPUTS
NOREQ/S - suppress confirmation requester.
NOSAVE/S - suppress default saving of settings if requester is
suppressed. Using both the NOREQ and NOSAVE switches
means that Reflex can quit without saving changed
settings.
RETURN CODE
0 (RC_OK) - is always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
Reflex/RequestAddress Reflex/RequestAddress
NAME
RequestAddress -- request user for a Fido address
SYNOPSIS
RESULT = RequestAddress ADDRESS,TITLE/K,TEXT/K
FUNCTION
This command will bring forth the Address requester for the user
to select a Fido address.
Default the Address requester will open with no address, but
specifying Fido address for the Address requester to open with is
possible.
Window title and a short text to display in the top of the
requester can be specified.
The selected address is returned in RESULT.
INPUTS
ADDRESS - optional Fido address for the Address requester to open
with.
TITLE/K - window title. Defaults to 'Reflex message'.
TEXT/K - short one-line text to display in the top of the
requester. Defaults to 'Enter address'.
RETURN CODE
The user selected Fido address, e.g. "2:238/127.0".
RESULT
0 (RC_OK) - user selected a Fido address in the Address
requester. The selected Fido address is available
in RESULT.
5 (RC_WARN) - user cancelled the Address requester.
10 (RC_ERROR) - (only if an open address is specified) the
specified Fido address is invalid.
BUGS
None known.
SEE ALSO
ChangeEntryAddress, GetEntryAddress, RequestNode, SetEntryAddress
Reflex/RequestAttach Reflex/RequestAttach
NAME
RequestAttach -- open Attach requester
SYNOPSIS
RequestAttach TITLE/K,NODE
FUNCTION
This command will bring forth the Attach requester for the user
to attach files. When you use the RequestAttach command you should
notice two things
- after this command has succeeded the outbound list will contain
more entrires than it did before if the user attached some
files. To obtain the number of files that was attached you can
use the GetNumEntries command before and after you executed the
RequestAttach command because the difference between these two
results is the number of files attached.
- the new entries (i.e. the new attached files) will be located at
the end of the list; i.e. it will be the last entries in the
outbound list. You can use SortOutboundList to sort the list and
thereby move the new entries to their correct position in the
outbound list if needed.
An optional window title can be specified using the keyword TITLE.
INPUTS
TITLE/K - optional window title. Defaults to 'Reflex <ver> File
attach'.
NODE - optional Fido address to display in 'Node' string gadget
when the requester opens.
RETURN CODE
0 (RC_OK) - user attached some files.
5 (RC_WARN) - no files were attached.
10 (RC_ERROR) - (only with NODE) Fido address invalid.
RESULT
None.
BUGS
None known.
SEE ALSO
Attach, SortOutboundList
Reflex/RequestFile Reflex/RequestFile
NAME
RequestFile -- open file requester
SYNOPSIS
RESULT = RequestFile TITLE/K,PATH/K,FILE/K,PATTERN/K
FUNCTION
This command opens a file requester (currently a ReqTools file
requester) for the user to select a file.
You can specify a window title, a path to open the requester in,
a filename to be displayed in the file gadget, and a pattern.
The selected file - if any - is returned in RESULT.
INPUTS
TITLE/K - a window title for the file requester. Defaults to
'Select file'.
PATH/K - directory to open file requester in. Defaults to
current directory.
FILE/K - filename to display in file gadget. Defaults to none.
PATTERN/K - pattern to match file against.
RETURN CODE
0 (RC_OK) - if the user selected a file. The filename will be
returned in RESULT.
5 (RC_WARN) - user selected 'Cancel'.
RESULT
Filename of selected file, incl. full path.
BUGS
None known.
SEE ALSO
RequestPath
Reflex/RequestFreq Reflex/RequestFreq
NAME
RequestFreq -- open Freq requester
SYNOPSIS
RequestFreq NODE
FUNCTION
This command will bring forth the Freq requester for the user to
request files. When you use the RequestFreq command you should
notice two things:
- after this command has succeeded the outbound list will contain
more entrires than it did before if the user requested some
files. To obtain the number of files that was requested you can
use the GetNumEntries command before and after you executed the
RequestFreq command because the difference between these two
results is the number of files requested.
- the new entries (i.e. the new file requests) will be located at
the end of the list; i.e. it will be the last entries in the
outbound list. You can use SortOutboundList to sort the list and
thereby move the new entries to their correct position in the
outbound list if needed.
Optionally a window title can be specified.
INPUTS
TITLE/K - optional window title. Defaults to 'Reflex <ver> File
request'.
NODE - optional Fido address to display in 'Node' string gadget
when the requester opens.
RETURN CODE
0 (RC_OK) - user requested some files.
5 (RC_WARN) - no files were requested.
10 (RC_ERROR) - (only with NODE) Fido address invalid.
RESULT
None.
BUGS
None known.
SEE ALSO
Freq, SortOutboundList
Reflex/RequestNode Reflex/RequestNode
NAME
RequestNode -- request user for a node selected from a group
of nodes
SYNOPSIS
RESULT = RequestNode TITLE/K,TEXT/K
FUNCTION
This command opens the Node requester and prompt the user to
select a node among a group of nodes. The group of nodes consist
of those that have the 'Node requester' checkbox ticked in the
Nodebook.
A window title and a short text to be display above the listview
can be specified.
The Fido address of the selected node is returned in RESULT.
INPUTS
TITLE/K - window title. Defaults to 'Reflex message'.
TEXT/K - short one-line text to be displayed above the listview.
Defaults to 'Select node'.
RETURN CODE
0 (RC_OK) - the user selected a node. The Fido address of the
node is avaiable in RESULT.
5 (RC_WARN) - user cancelled Node requester.
10 (RC_ERROR) - no nodes is listed in the Node requester, i.e. no
nodes have the 'Node requester' checkbox ticked in
the Nodebook.
RESULT
The Fido address of the selected node.
BUGS
None known.
SEE ALSO
RequestAddress
Reflex/RequestNotify Reflex/RequestNotify
NAME
RequestNotify -- open notification requester
SYNOPSIS
RequestNotify TITLE/K,PROMPT/A
FUNCTION
This function opens a simple requester for you to notify the
user. You can specify the window title and naturally the text
to display in the requester.
The only gadget is a (localized) 'Ok' gadget.
INPUTS
TITLE/K - window title. Defaults to 'Reflex message'.
PROMPT/A - text to display in the requester.
RETURN CODE
0 (RC_OK) - always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
RequestResponse
Reflex/RequestPath Reflex/RequestPath
NAME
RESULT = RequestPath -- open directory requester
SYNOPSIS
RequestPath TITLE/K,PATH/K
FUNCTION
This function opens a directory requester (currently a ReqTools
directory requester) for the user to select a path.
You can specify the window title and the path to open the
requester in.
If the user selected a path it will be available in RESULT.
INPUTS
TITLE/K - window title for directory requester. Defaults to
'Select directory'.
PATH/K - path to open file requester in. Defaults to current
directory.
RETURN CODE
0 (RC_OK) - user selected a path. The path is returned in
RESULT.
5 (RC_WARN) - user cancelled the directory requester.
RESULT
The selected path.
BUGS
None known.
SEE ALSO
RequestFile
Reflex/RequestResponse Reflex/RequestResponse
NAME
RequestResponse -- give user a choice
SYNOPSIS
RESULT = RequestResponse TITLE/K,PROMPT/A,DEFAULT/N/K,GADGETS
FUNCTION
This function will open a requester an give the user the choice
of one or more possibilities.
You can specify a window title for the requester, naturally the
text to display in the requester, and the gadgets for the choices
the user can make.
The result of the user's choice is returned in RESULT.
INPUTS
TITLE/K - window title for requester. Defaults to 'Reflex
message'.
PROMPT/A - text to display in requester.
DEFAULT/N/K - default gadget. Number of gadget that will have have
return as shortcut key. The rightmost gadget has got
the number zero, the other gadgets are numbered from
one starting from the left going to the right.
Defaults to 0.
GADGETS - text for gadgets. Gadgets are separated with a pipe
('|') and keyboard shortcuts are specified by
putting a underscore ('_') in front of the character.
Defaults to '_Ok|_Cancel'.
RETURN CODE
0 (RC_OK) - requester was opened and the user made a choice. The
selection is availble in RESULT.
5 (RC_WARN) - failed opening requester.
RESULT
The user selection:
In a one gadget requester zero (0) is returned.
In a requester with two or more gadgets the gadget to the right
has number zero (0), and the other gadgets are numbered from the
left to the right from one (1) and up. I.e. in a four gadget
requester the gadgets are numbered 1 2 3 0; in a two gadget
requester the gadgets are numbered 1 0. It is the gadget number
that is returned in RESULT.
BUGS
None known.
SEE ALSO
RequestNotify
Reflex/RequestStatus Reflex/RequestStatus
NAME
RequestStatus -- request user for a status (flavour)
SYNOPSIS
RESULT = RequestStatus STATUS,TITLE/K,TEXT/K
FUNCTION
This command will bring forth the Status requester for the user to
select a status (flavour), i.e. Normal, Crash, Hold or Direct.
Default the Status requester will open with a Normal flavour, but
specifying another optional flavour for the Status requester to
open with is possible.
The window title of the requester and a short text to be displayed
above the cycle gadget can be specified.
The selected status is returned in RESULT.
INPUTS
STATUS - optional flavour ('Normal', 'Crash', 'Hold' or 'Direct')
for the Status requester to open with.
TITLE/K - window title. Defaults to 'Reflex message'.
TEXT/K - short one-line text to be displayed above the cycle
gadget. Defaults to 'Select status'.
RETURN CODE
The user selected status (flavour):
"1" - Normal (flavour is normal)
"2" - Crash (flavour is crash)
"3" - Hold (flavour is hold)
"4" - Direct (flavour is direct)
RESULT
0 (RC_OK) - user selected a flavour in the Status requester.
The selected status (flavour) is available in
RESULT.
5 (RC_WARN) - user cancelled the Status requester.
10 (RC_ERROR) - (only if an open flavour is specified) the
specified invalid. Ought to be either 'Normal',
'Crash', 'Hold' or 'Direct'.
BUGS
None known.
SEE ALSO
ChangeEntryStatus, GetEntryStatus, SetEntryStatus
Reflex/Rescan Reflex/Rescan
NAME
Rescan -- rescan outbound directory
SYNOPSIS
Rescan
FUNCTION
This command scans the outbound directory. A maintenance will be
performed after the rescan if your settings in the Deletion
configuration window instructs Reflex to do so.
INPUTS
None.
RETURN CODE
0 (RC_OK) - is currently always returned.
RESULT
None.
BUGS
Currently Reflex occasionally fails in rescanning the outbound
directory. This is caused because Reflex currently doesn't handle
busy files in the outbound directory correctly. The command ought
to return RC_ERROR (10) when it fails - but doesn't.
SEE ALSO
Maintenance
Reflex/SaveSettings Reflex/SaveSettings
NAME
SaveSettings -- save settings
SYNOPSIS
SaveSettings
FUNCTION
This command will save the settings.
INPUTS
None.
RETURN CODE
0 (RC_OK) - is always returned.
RESULT
None.
BUGS
This command ought to return an error code if it didn't save the
settings correctly. Unfortunately this isn't possible at the
moment.
SEE ALSO
IsCfgChanged
Reflex/SetEntryAddress Reflex/SetEntryAddress
NAME
SetEntryAddress -- change address of current entry
SYNOPSIS
SetEntryAddress ADDRESS/A
FUNCTION
This command will change the addres of the current entry.
Naturally you can only change status for entries already with a
address.
You can't change the address of a request at you own system.
INPUTS
ADDRESS/A - address to change to. Must be a valid Fido address.
RETURN CODE
0 (RC_OK) - address was indeed changed.
5 (RC_WARN) - for some reason Reflex didn't succeed in changing
the address..
10 (RC_ERROR) - if the specified Fido address is invalid.
10 (RC_ERROR) - if Reflex can't change address of the current
entry because entry is either orphan or empty
file.
RESULT
None.
BUGS
None known.
SEE ALSO
ChangeEntryAddress, GetEntryAddress, RequestAddress
Reflex/SetEntryStatus Reflex/SetEntryStatus
NAME
SetEntryStatus -- change status of current entry
SYNOPSIS
SetEntryStatus STATUS/A
FUNCTION
This command will change the status (flavour) of the current
entry. Naturally you can only change status for entries with a
Normal, Crash, Hold or Direct flavour.
You can also changes requests at you system to normal flow file
entries using this command.
INPUTS
STATUS/A - flavour to change to. 'Normal', 'Crash', 'Hold' or
'Direct'.
RETURN CODE
0 (RC_OK) - status was indeed changed.
5 (RC_WARN) - for some reason Reflex didn't succeed in changing
the status. E.g. this will happen when you attempt
to change the status of a file request.
10 (RC_ERROR) - if the specified status is invalid. I ought to be
either 'Normal', 'Crash', 'Hold' or 'Direct'.
RESULT
None.
BUGS
None known.
SEE ALSO
ChangeEntryStatus, GetEntryStatus, RequestStatus
Reflex/ShowAbout Reflex/ShowAbout
NAME
ShowAbout -- display About requester
SYNOPSIS
ShowAbout
FUNCTION
This command displays the About requester
INPUTS
None.
RETURN CODE
0 (RC_OK) - always returned
RESULT
None.
BUGS
None known.
SEE ALSO
Reflex/ShowAcknowledgement Reflex/ShowAcknowledgement
NAME
ShowAcknowledgement -- display Acknowledgement requesters
SYNOPSIS
ShowAcknowledgement
FUNCTION
This command displays the Acknowledgement requesters.
INPUTS
None.
RETURN CODE
0 (RC_OK) - always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
Reflex/ShowGUI Reflex/ShowGUI
NAME
ShowGUI -- pop up the GUI of Reflex
SYNOPSIS
ShowGUI
FUNCTION
This command will bring the graphic user interface to the front.
Both window and screen are brought to the front.
Does your script open the GUI when it starts it should close it
again if it was closed when the script started.
INPUTS
None.
RETURN CODE
0 (RC_OK) - is always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
HideGUI, IsGUI
Reflex/ShowInfo Reflex/ShowInfo
NAME
ShowInfo -- display Info requester for current entry
SYNOPSIS
ShowInfo
FUNCTION
This command displays the Info requester with information about
the current entry in the outbound list.
INPUTS
None.
RETURN CODE
0 (RC_OK) - requester was opened.
5 (RC_WARN) - outbound list is empty.
RESULT
None.
BUGS
None known.
SEE ALSO
Reflex/SortOutboundList Reflex/SortOutboundList
NAME
SortOutboundList -- sort outbound list
SYNOPSIS
SortOutboundList
FUNCTION
This command sorts the outbound list according to Fido addresses.
It is worth noticing that there outbound list pointer will be at
the same entry in the outbound list after the sort as it was
before the sort.
This command currently requires traplist.library for the sort.
INPUTS
None.
RETURN CODE
0 (RC_OK) - outbound list was sorted.
5 (RC_WARN) - traplist.library not available.
RESULT
None.
BUGS
None known.
SEE ALSO
Reflex/UnlockARexx Reflex/UnlockARexx
NAME
UnlockARexx -- release ARexx port
SYNOPSIS
UnlockARexx
FUNCTION
This command will free your ARexx ownership of Reflex. This will
enable other ARexx scripts to access Reflex' ARexx port.
INPUTS
None.
RETURN CODE
0 (RC_OK) - always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
LockARexx, LockGUI, QueryOwnership
Reflex/UnlockGUI Reflex/UnlockGUI
NAME
UnlockGUI -- enable user input
SYNOPSIS
UnlockGUI
FUNCTION
Enable user input after use of LockGUI. Usage of LockGUI must be
matched with a call to UnlockGUI.
INPUTS
None.
RETURN CODE
0 (RC_OK) - is always returned.
RESULT
None.
BUGS
None known.
SEE ALSO
LockGUI, LockARexx
Reflex/UpdateProgress Reflex/UpdateProgress
NAME
UpdateProgress -- update progress requester
SYNOPSIS
UpdateProgress PROGRESS/N/A,CURRENT/N/A
FUNCTION
This function updates an opened progress requester to a new value.
You will need a progress requester identifier key when you address
the progress requester. This key will you have obtained when you
opened the progress requester using the OpenProgress command.
INPUTS
PROGRESS/N/A - progress requester identifier key obtained from
OpenProgress. Specifying a zero key obtained from
OpenProgress when Reflex failed opening a progress
requester is allowed.
CURRENT/N/A - the new value for which the progress requester
should be updated. This value ought to be between
zero and the value specified as MAX/N/A when you
opened the progress requester.
RETURN CODE
0 (RC_OK) - if progress requester was updated.
5 (RC_WARN) - progress requester identifier key was invalid (or
zero).
RESULT
None.
BUGS
None known.
SEE ALSO
CloseProgress, OpenProgress
Reflex/WriteLog Reflex/WriteLog
NAME
WriteLog -- write message to Reflex' log file
SYNOPSIS
WriteLog LOGMESSAGE/A,LEVEL/K/N
FUNCTION
This command enables ARexx programmers to write messages to
Reflex' log file.
INPUTS
LOGMESSAGE/A - message to write to the log file.
LEVEL/K/N - log level. Must be 1 or greater; defaults to 1.
Negative values will be indented a bit more than
the positive value but pertain the same level.
RETURN CODE
0 (RC_OK) - is returned.
RESULT
None.
BUGS
This command ought to return an error code if no log file was
specified in the Files configuration, and if Reflex for some
reason was unable to write the message to the log file.
LEVEL/K/N is currently not supported.
SEE ALSO
GetLogfile